{
$mods = explode(',', $this->appModules);
- array_unshift($mods, 'Core');
- $mods = array_unique($mods);
-
+ if (in_array('Core',$mods)) { // core has to be the first modules loaded as it contains Pman.js
+ array_unshift($mods, 'Core');
+ }
+ $mods = array_unique($mods);
+
$disabled = explode(',', $this->appDisable ? $this->appDisable: '');
foreach($mods as $mod) {