@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @param $module |
74 | 74 | * |
75 | - * @return bool True if module related to SamsonCMS |
|
75 | + * @return integer True if module related to SamsonCMS |
|
76 | 76 | */ |
77 | 77 | public function ifModuleRelated($module) |
78 | 78 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @param array $params Initialization parameters |
110 | 110 | * |
111 | - * @return bool Initialization stage result |
|
111 | + * @return boolean|null Initialization stage result |
|
112 | 112 | */ |
113 | 113 | public function init(array $params = array()) |
114 | 114 | { |
@@ -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 | } |