@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | Event::subscribe(Compressor::E_CREATE_MODULE_LIST, array($this, 'getModuleList')); |
| 156 | 156 | |
| 157 | 157 | //url()->parse(); |
| 158 | - $this->template = $this->path() . 'app/view/index.php'; |
|
| 158 | + $this->template = $this->path().'app/view/index.php'; |
|
| 159 | 159 | |
| 160 | 160 | // Generate resources for new module |
| 161 | 161 | //[PHPCOMPRESSOR(remove,start)] |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | public function activeModuleHandler($module) |
| 172 | 172 | { |
| 173 | 173 | // Define if routed module is related to SamsonCMS |
| 174 | - if($this->isCMS = $this->ifModuleRelated($module)){ |
|
| 174 | + if ($this->isCMS = $this->ifModuleRelated($module)) { |
|
| 175 | 175 | // TODO: This should be removed - Reparse url |
| 176 | 176 | |
| 177 | 177 | url()->parse(); |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | public function updateCMSPrefix($module, &$prefix) |
| 193 | 193 | { |
| 194 | 194 | if (($module->id != $this->id) && $this->ifModuleRelated($module)) { |
| 195 | - $prefix = '/' . $this->baseUrl . $prefix; |
|
| 195 | + $prefix = '/'.$this->baseUrl.$prefix; |
|
| 196 | 196 | } |
| 197 | 197 | } |
| 198 | 198 | |
@@ -290,7 +290,6 @@ discard block |
||
| 290 | 290 | $local = m('local'); |
| 291 | 291 | $current = m(); |
| 292 | 292 | |
| 293 | - return isset($current['title']) ? $current['title'] : |
|
| 294 | - (isset($local['title']) ? $local['title'] : ''); |
|
| 293 | + return isset($current['title']) ? $current['title'] : (isset($local['title']) ? $local['title'] : ''); |
|
| 295 | 294 | } |
| 296 | 295 | } |