fix: [dashboard] custom routing fixed

pull/5635/head
iglocska 2020-03-01 18:28:52 +01:00
parent ab129a12d9
commit f6f66e0f31
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 3 deletions

View File

@ -37,9 +37,7 @@ class Dashboard extends AppModel
private function __extractMeta($className, $custom)
{
debug($className);
debug('Dashboard' . $custom ? '/Custom' : '');
App::uses($className, 'Dashboard' . $custom ? '/Custom' : '');
App::uses($className, 'Dashboard' . ($custom ? '/Custom' : ''));
$widgetClass = new $className();
$widget = array(
'widget' => $className,