Merge pull request #2604 from dubcanada/patch-1
If CMS module is loaded (and MediaManager exists) bind it
This commit is contained in:
commit
5e729f9978
|
|
@ -153,8 +153,10 @@ class Controller extends Extendable
|
|||
/*
|
||||
* Media Manager widget is available on all back-end pages
|
||||
*/
|
||||
$manager = new MediaManager($this, 'ocmediamanager');
|
||||
$manager->bindToController();
|
||||
if (class_exists('\\Cms\\Widgets\\MediaManager')) {
|
||||
$manager = new MediaManager($this, 'ocmediamanager');
|
||||
$manager->bindToController();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue