@@ -1,21 +1,21 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | //:: EVO Installer Setup file |
3 | 3 | //::::::::::::::::::::::::::::::::::::::::: |
4 | -if (is_file($base_path . 'assets/cache/siteManager.php')) { |
|
5 | - include_once($base_path . 'assets/cache/siteManager.php'); |
|
4 | +if (is_file($base_path.'assets/cache/siteManager.php')) { |
|
5 | + include_once($base_path.'assets/cache/siteManager.php'); |
|
6 | 6 | } |
7 | 7 | if (!defined('MGR_DIR')) { |
8 | 8 | define('MGR_DIR', 'manager'); |
9 | 9 | } |
10 | 10 | |
11 | -require_once(dirname(dirname(dirname(__DIR__))) . '/' . MGR_DIR . '/includes/version.inc.php'); |
|
11 | +require_once(dirname(dirname(dirname(__DIR__))).'/'.MGR_DIR.'/includes/version.inc.php'); |
|
12 | 12 | |
13 | -$chunkPath = $base_path . 'install/assets/chunks'; |
|
14 | -$snippetPath = $base_path . 'install/assets/snippets'; |
|
15 | -$pluginPath = $base_path . 'install/assets/plugins'; |
|
16 | -$modulePath = $base_path . 'install/assets/modules'; |
|
17 | -$templatePath = $base_path . 'install/assets/templates'; |
|
18 | -$tvPath = $base_path . 'install/assets/tvs'; |
|
13 | +$chunkPath = $base_path.'install/assets/chunks'; |
|
14 | +$snippetPath = $base_path.'install/assets/snippets'; |
|
15 | +$pluginPath = $base_path.'install/assets/plugins'; |
|
16 | +$modulePath = $base_path.'install/assets/modules'; |
|
17 | +$templatePath = $base_path.'install/assets/templates'; |
|
18 | +$tvPath = $base_path.'install/assets/tvs'; |
|
19 | 19 | |
20 | 20 | // setup Template template files - array : name, description, type - 0:file or 1:content, parameters, category |
21 | 21 | $mt = &$moduleTemplates; |
@@ -28,8 +28,7 @@ discard block |
||
28 | 28 | $params = parse_docblock($templatePath, $tplfile); |
29 | 29 | if (is_array($params) && (count($params) > 0)) { |
30 | 30 | $description = empty($params['version']) ? $params['description'] : "<strong>{$params['version']}</strong> {$params['description']}"; |
31 | - $mt[] = array |
|
32 | - ( |
|
31 | + $mt[] = array( |
|
33 | 32 | $params['name'], |
34 | 33 | $description, |
35 | 34 | // Don't think this is gonna be used ... but adding it just in case 'type' |
@@ -149,7 +148,7 @@ discard block |
||
149 | 148 | $params['modx_category'], |
150 | 149 | $params['legacy_names'], |
151 | 150 | array_key_exists('installset', $params) ? preg_split("/\s*,\s*/", $params['installset']) : false, |
152 | - (int)$params['disabled'] |
|
151 | + (int) $params['disabled'] |
|
153 | 152 | ); |
154 | 153 | } |
155 | 154 | } |
@@ -174,12 +173,12 @@ discard block |
||
174 | 173 | "$modulePath/{$params['filename']}", |
175 | 174 | $params['properties'], |
176 | 175 | $params['guid'], |
177 | - (int)$params['shareparams'], |
|
176 | + (int) $params['shareparams'], |
|
178 | 177 | $params['modx_category'], |
179 | 178 | array_key_exists('installset', $params) ? preg_split("/\s*,\s*/", $params['installset']) : false |
180 | 179 | ); |
181 | 180 | } |
182 | - if ((int)$params['shareparams'] || !empty($params['dependencies'])) { |
|
181 | + if ((int) $params['shareparams'] || !empty($params['dependencies'])) { |
|
183 | 182 | $dependencies = explode(',', $params['dependencies']); |
184 | 183 | foreach ($dependencies as $dependency) { |
185 | 184 | $dependency = explode(':', $dependency); |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @deprecated EvolutionCMS\Legacy\ErrorHandler |
6 | 6 | * @todo could be unnecessary |
7 | 7 | */ |
8 | -class errorHandler extends EvolutionCMS\Legacy\ErrorHandler { |
|
8 | +class errorHandler extends EvolutionCMS\Legacy\ErrorHandler{ |
|
9 | 9 | public function include_lang($context = 'common') |
10 | 10 | { |
11 | 11 | parent::includeLang($context); |
@@ -71,11 +71,11 @@ |
||
71 | 71 | } |
72 | 72 | |
73 | 73 | if ($context === 'common') { |
74 | - $lang_path = MODX_MANAGER_PATH . 'includes/lang/'; |
|
74 | + $lang_path = MODX_MANAGER_PATH.'includes/lang/'; |
|
75 | 75 | } else { |
76 | - $lang_path = MODX_MANAGER_PATH . "includes/lang/{$context}/"; |
|
76 | + $lang_path = MODX_MANAGER_PATH."includes/lang/{$context}/"; |
|
77 | 77 | } |
78 | - include_once($lang_path . 'english.inc.php'); |
|
78 | + include_once($lang_path.'english.inc.php'); |
|
79 | 79 | $manager_language = $modx->config['manager_language']; |
80 | 80 | if (is_file("{$lang_path}{$manager_language}.inc.php")) { |
81 | 81 | include_once("{$lang_path}{$manager_language}.inc.php"); |
@@ -90,14 +90,14 @@ discard block |
||
90 | 90 | $countChild++; |
91 | 91 | $id = $value[0]; |
92 | 92 | $ph['id'] = $id; |
93 | - $ph['li_class'] = $this->getItemClass($id) . $value[10]; |
|
93 | + $ph['li_class'] = $this->getItemClass($id).$value[10]; |
|
94 | 94 | $ph['href'] = $value[3]; |
95 | 95 | $ph['alt'] = $value[4]; |
96 | 96 | $ph['target'] = $value[7]; |
97 | 97 | $ph['onclick'] = $value[5]; |
98 | 98 | $ph['a_class'] = $this->getLinkClass($id); |
99 | 99 | $ph['LinkAttr'] = $this->getLinkAttr($id); |
100 | - $ph['itemName'] = $value[2] . $this->getItemName($id); |
|
100 | + $ph['itemName'] = $value[2].$this->getItemName($id); |
|
101 | 101 | |
102 | 102 | $ph['DrawSub'] = ''; |
103 | 103 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | public function getLinkClass($id) |
146 | 146 | { |
147 | 147 | if (isset($this->menu[$id])) { |
148 | - return ' class="' . $this->defaults['parentLinkClass'] . '"'; |
|
148 | + return ' class="'.$this->defaults['parentLinkClass'].'"'; |
|
149 | 149 | } else { |
150 | 150 | return ''; |
151 | 151 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | public function getItemClass($id) |
172 | 172 | { |
173 | 173 | if (isset($this->menu[$id])) { |
174 | - return $this->defaults['parentClass'] . ' '; |
|
174 | + return $this->defaults['parentClass'].' '; |
|
175 | 175 | } else { |
176 | 176 | return ''; |
177 | 177 | } |
@@ -101,14 +101,14 @@ discard block |
||
101 | 101 | $array_paging['total'] = $this->int_nbr_row; |
102 | 102 | |
103 | 103 | if ($this->int_cur_position != 0) { |
104 | - $array_paging['first_link'] = "<a href=\"$PHP_SELF?int_cur_position=0" . $this->str_ext_argv . "\">"; |
|
105 | - $array_paging['previous_link'] = "<a href=\"$PHP_SELF?int_cur_position=" . ($this->int_cur_position - $this->int_num_result) . $this->str_ext_argv . "\">"; |
|
104 | + $array_paging['first_link'] = "<a href=\"$PHP_SELF?int_cur_position=0".$this->str_ext_argv."\">"; |
|
105 | + $array_paging['previous_link'] = "<a href=\"$PHP_SELF?int_cur_position=".($this->int_cur_position - $this->int_num_result).$this->str_ext_argv."\">"; |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | if (($this->int_nbr_row - $this->int_cur_position) > $this->int_num_result) { |
109 | 109 | $int_new_position = $this->int_cur_position + $this->int_num_result; |
110 | - $array_paging['last_link'] = "<a href=\"$PHP_SELF?int_cur_position=" . $this->int_nbr_row . $this->str_ext_argv . "\">"; |
|
111 | - $array_paging['next_link'] = "<a href=\"$PHP_SELF?int_cur_position=$int_new_position" . $this->str_ext_argv . "\">"; |
|
110 | + $array_paging['last_link'] = "<a href=\"$PHP_SELF?int_cur_position=".$this->int_nbr_row.$this->str_ext_argv."\">"; |
|
111 | + $array_paging['next_link'] = "<a href=\"$PHP_SELF?int_cur_position=$int_new_position".$this->str_ext_argv."\">"; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | return $array_paging; |
@@ -126,10 +126,10 @@ discard block |
||
126 | 126 | for ($i = 0; $i < $this->getNumberOfPage(); $i++) { |
127 | 127 | // if current page, do not make a link |
128 | 128 | if ($i == $this->getCurrentPage()) { |
129 | - $array_all_page[$i] = "<b>" . ($i + 1) . "</b> "; |
|
129 | + $array_all_page[$i] = "<b>".($i + 1)."</b> "; |
|
130 | 130 | } else { |
131 | 131 | $int_new_position = ($i * $this->int_num_result); |
132 | - $array_all_page[$i] = "<a href=\"" . $PHP_SELF . "?int_cur_position=$int_new_position$this->str_ext_argv\">" . ($i + 1) . "</a> "; |
|
132 | + $array_all_page[$i] = "<a href=\"".$PHP_SELF."?int_cur_position=$int_new_position$this->str_ext_argv\">".($i + 1)."</a> "; |
|
133 | 133 | } |
134 | 134 | } |
135 | 135 |
@@ -43,44 +43,44 @@ discard block |
||
43 | 43 | public $im_height = 0; |
44 | 44 | public $im; |
45 | 45 | |
46 | - public function __construct($w=200, $h=80) { |
|
46 | + public function __construct($w = 200, $h = 80){ |
|
47 | 47 | /* create session to set word for verification */ |
48 | 48 | $this->setVeriword(); |
49 | - $this->dir_font = MODX_BASE_PATH . 'assets/' . $this->dir_font; |
|
49 | + $this->dir_font = MODX_BASE_PATH.'assets/'.$this->dir_font; |
|
50 | 50 | $this->im_width = $w; |
51 | 51 | $this->im_height = $h; |
52 | 52 | } |
53 | 53 | |
54 | - public function setVeriword() { |
|
54 | + public function setVeriword(){ |
|
55 | 55 | /* create session variable for verification, |
56 | 56 | you may change the session variable name */ |
57 | 57 | $this->word = $this->makeText(); |
58 | 58 | $_SESSION['veriword'] = $this->word; |
59 | 59 | } |
60 | 60 | |
61 | - public function output() { |
|
61 | + public function output(){ |
|
62 | 62 | /* output the image as jpeg */ |
63 | 63 | $this->drawImage(); |
64 | 64 | header("Content-type: image/jpeg"); |
65 | 65 | imagejpeg($this->im); |
66 | 66 | } |
67 | 67 | |
68 | - public function makeText() { |
|
68 | + public function makeText(){ |
|
69 | 69 | $modx = evolutionCMS(); |
70 | 70 | // set default words |
71 | - $words="MODX,Access,Better,BitCode,Chunk,Cache,Desc,Design,Excell,Enjoy,URLs,TechView,Gerald,Griff,Humphrey,Holiday,Intel,Integration,Joystick,Join(),Oscope,Genetic,Light,Likeness,Marit,Maaike,Niche,Netherlands,Ordinance,Oscillo,Parser,Phusion,Query,Question,Regalia,Righteous,Snippet,Sentinel,Template,Thespian,Unity,Enterprise,Verily,Veri,Website,WideWeb,Yap,Yellow,Zebra,Zygote"; |
|
71 | + $words = "MODX,Access,Better,BitCode,Chunk,Cache,Desc,Design,Excell,Enjoy,URLs,TechView,Gerald,Griff,Humphrey,Holiday,Intel,Integration,Joystick,Join(),Oscope,Genetic,Light,Likeness,Marit,Maaike,Niche,Netherlands,Ordinance,Oscillo,Parser,Phusion,Query,Question,Regalia,Righteous,Snippet,Sentinel,Template,Thespian,Unity,Enterprise,Verily,Veri,Website,WideWeb,Yap,Yellow,Zebra,Zygote"; |
|
72 | 72 | $words = $modx->config['captcha_words'] ? $modx->config['captcha_words'] : $words; |
73 | 73 | $arr_words = array_filter(array_map('trim', explode(',', $words))); |
74 | 74 | |
75 | 75 | /* pick one randomly for text verification */ |
76 | - return (string) $arr_words[array_rand($arr_words)].rand(10,999); |
|
76 | + return (string) $arr_words[array_rand($arr_words)].rand(10, 999); |
|
77 | 77 | } |
78 | 78 | |
79 | - public function drawText() { |
|
79 | + public function drawText(){ |
|
80 | 80 | $dir = dir($this->dir_font); |
81 | 81 | $fontstmp = array(); |
82 | 82 | while (false !== ($file = $dir->read())) { |
83 | - if(substr($file, -4) == '.ttf') { |
|
83 | + if (substr($file, -4) == '.ttf') { |
|
84 | 84 | $fontstmp[] = $this->dir_font.$file; |
85 | 85 | } |
86 | 86 | } |
@@ -88,35 +88,35 @@ discard block |
||
88 | 88 | $text_font = (string) $fontstmp[array_rand($fontstmp)]; |
89 | 89 | |
90 | 90 | /* angle for text inclination */ |
91 | - $text_angle = rand(-9,9); |
|
91 | + $text_angle = rand(-9, 9); |
|
92 | 92 | /* initial text size */ |
93 | 93 | $text_size = 30; |
94 | 94 | /* calculate text width and height */ |
95 | - $box = imagettfbbox ( $text_size, $text_angle, $text_font, $this->word); |
|
96 | - $text_width = $box[2]-$box[0]; //text width |
|
97 | - $text_height= $box[5]-$box[3]; //text height |
|
95 | + $box = imagettfbbox($text_size, $text_angle, $text_font, $this->word); |
|
96 | + $text_width = $box[2] - $box[0]; //text width |
|
97 | + $text_height = $box[5] - $box[3]; //text height |
|
98 | 98 | |
99 | 99 | /* adjust text size */ |
100 | - $text_size = round((20 * $this->im_width)/$text_width); |
|
100 | + $text_size = round((20 * $this->im_width) / $text_width); |
|
101 | 101 | |
102 | 102 | /* recalculate text width and height */ |
103 | - $box = imagettfbbox ( $text_size, $text_angle, $text_font, $this->word); |
|
104 | - $text_width = $box[2]-$box[0]; //text width |
|
105 | - $text_height= $box[5]-$box[3]; //text height |
|
103 | + $box = imagettfbbox($text_size, $text_angle, $text_font, $this->word); |
|
104 | + $text_width = $box[2] - $box[0]; //text width |
|
105 | + $text_height = $box[5] - $box[3]; //text height |
|
106 | 106 | |
107 | 107 | /* calculate center position of text */ |
108 | - $text_x = ($this->im_width - $text_width)/2; |
|
109 | - $text_y = ($this->im_height - $text_height)/2; |
|
108 | + $text_x = ($this->im_width - $text_width) / 2; |
|
109 | + $text_y = ($this->im_height - $text_height) / 2; |
|
110 | 110 | |
111 | 111 | /* create canvas for text drawing */ |
112 | - $im_text = imagecreate ($this->im_width, $this->im_height); |
|
113 | - $bg_color = imagecolorallocate ($im_text, 255, 255, 255); |
|
112 | + $im_text = imagecreate($this->im_width, $this->im_height); |
|
113 | + $bg_color = imagecolorallocate($im_text, 255, 255, 255); |
|
114 | 114 | |
115 | 115 | /* pick color for text */ |
116 | - $text_color = imagecolorallocate ($im_text, 0, 51, 153); |
|
116 | + $text_color = imagecolorallocate($im_text, 0, 51, 153); |
|
117 | 117 | |
118 | 118 | /* draw text into canvas */ |
119 | - imagettftext ( $im_text, |
|
119 | + imagettftext($im_text, |
|
120 | 120 | $text_size, |
121 | 121 | $text_angle, |
122 | 122 | $text_x, |
@@ -131,19 +131,19 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | |
134 | - public function drawImage() { |
|
134 | + public function drawImage(){ |
|
135 | 135 | |
136 | 136 | /* pick one background image randomly from image directory */ |
137 | - $img_file = MODX_BASE_PATH . 'assets/' . $this->dir_noise."noise".rand(1,4).".jpg"; |
|
137 | + $img_file = MODX_BASE_PATH.'assets/'.$this->dir_noise."noise".rand(1, 4).".jpg"; |
|
138 | 138 | |
139 | 139 | /* create "noise" background image from your image stock*/ |
140 | - $noise_img = @imagecreatefromjpeg ($img_file); |
|
140 | + $noise_img = @imagecreatefromjpeg($img_file); |
|
141 | 141 | $noise_width = imagesx($noise_img); |
142 | 142 | $noise_height = imagesy($noise_img); |
143 | 143 | |
144 | 144 | /* resize the background image to fit the size of image output */ |
145 | - $this->im = imagecreatetruecolor($this->im_width,$this->im_height); |
|
146 | - imagecopyresampled ($this->im, |
|
145 | + $this->im = imagecreatetruecolor($this->im_width, $this->im_height); |
|
146 | + imagecopyresampled($this->im, |
|
147 | 147 | $noise_img, |
148 | 148 | 0, 0, 0, 0, |
149 | 149 | $this->im_width, |
@@ -152,17 +152,17 @@ discard block |
||
152 | 152 | $noise_height); |
153 | 153 | |
154 | 154 | /* put text image into background image */ |
155 | - imagecopymerge ( $this->im, |
|
155 | + imagecopymerge($this->im, |
|
156 | 156 | $this->drawText(), |
157 | 157 | 0, 0, 0, 0, |
158 | 158 | $this->im_width, |
159 | 159 | $this->im_height, |
160 | - 70 ); |
|
160 | + 70); |
|
161 | 161 | |
162 | 162 | return $this->im; |
163 | 163 | } |
164 | 164 | |
165 | - public function destroy() { |
|
165 | + public function destroy(){ |
|
166 | 166 | imagedestroy($this->im); |
167 | 167 | } |
168 | 168 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | if (is_array($SystemAlertMsgQueque)) { |
36 | 36 | $title = ''; |
37 | 37 | if ($this->name && $this->activePlugin) { |
38 | - $title = "<div><b>" . $this->activePlugin . "</b> - <span style='color:maroon;'>" . $this->name . "</span></div>"; |
|
38 | + $title = "<div><b>".$this->activePlugin."</b> - <span style='color:maroon;'>".$this->name."</span></div>"; |
|
39 | 39 | } |
40 | 40 | $SystemAlertMsgQueque[] = "$title<div style='margin-left:10px;margin-top:3px;'>$msg</div>"; |
41 | 41 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $_ = crc32(__FILE__); |
33 | 33 | $_ = sprintf('%u', $_); |
34 | 34 | |
35 | - return 'evo' . base_convert($_, 10, 36); |
|
35 | + return 'evo'.base_convert($_, 10, 36); |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | session_start(); |
58 | 58 | $key = "modx.mgr.session.cookie.lifetime"; |
59 | 59 | if (isset($_SESSION[$key]) && is_numeric($_SESSION[$key])) { |
60 | - $cookieLifetime = (int)$_SESSION[$key]; |
|
60 | + $cookieLifetime = (int) $_SESSION[$key]; |
|
61 | 61 | if ($cookieLifetime) { |
62 | 62 | $cookieExpiration = $_SERVER['REQUEST_TIME'] + $cookieLifetime; |
63 | 63 | } |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | -if( ! defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
2 | +if (!defined('IN_MANAGER_MODE') || IN_MANAGER_MODE !== true) { |
|
3 | 3 | die("<b>INCLUDE_ORDERING_ERROR</b><br /><br />Please use the EVO Content Manager instead of accessing this file directly."); |
4 | 4 | } |
5 | 5 | |
6 | -if(!$modx->hasPermission('category_manager')) { |
|
6 | +if (!$modx->hasPermission('category_manager')) { |
|
7 | 7 | $modx->webAlertAndQuit($_lang["error_no_privileges"]); |
8 | 8 | } |
9 | 9 | |
@@ -15,11 +15,11 @@ discard block |
||
15 | 15 | 'native_language' => 'de', |
16 | 16 | 'name' => 'Categories Manager', |
17 | 17 | 'dirname' => $site_manager_url, |
18 | - 'url' => 'index.php?a=120&id=' . $_GET['id'], |
|
19 | - 'path' => realpath( dirname(__FILE__) ) . DIRECTORY_SEPARATOR . 'category_mgr' . DIRECTORY_SEPARATOR, |
|
20 | - 'inc_dir' => realpath( dirname(__FILE__) ) . DIRECTORY_SEPARATOR . 'category_mgr' . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR, |
|
21 | - 'languages_dir' => realpath( dirname(__FILE__) ) . DIRECTORY_SEPARATOR . 'category_mgr' . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR, |
|
22 | - 'views_dir' => realpath( dirname(__FILE__) ) . DIRECTORY_SEPARATOR . 'category_mgr' . DIRECTORY_SEPARATOR . 'skin' . DIRECTORY_SEPARATOR, |
|
18 | + 'url' => 'index.php?a=120&id='.$_GET['id'], |
|
19 | + 'path' => realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'category_mgr'.DIRECTORY_SEPARATOR, |
|
20 | + 'inc_dir' => realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'category_mgr'.DIRECTORY_SEPARATOR.'inc'.DIRECTORY_SEPARATOR, |
|
21 | + 'languages_dir' => realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'category_mgr'.DIRECTORY_SEPARATOR.'lang'.DIRECTORY_SEPARATOR, |
|
22 | + 'views_dir' => realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR.'category_mgr'.DIRECTORY_SEPARATOR.'skin'.DIRECTORY_SEPARATOR, |
|
23 | 23 | 'request_key' => 'module_categories_manager', |
24 | 24 | 'messages' => array() |
25 | 25 | ); |
@@ -27,19 +27,19 @@ discard block |
||
27 | 27 | $cm = new EvolutionCMS\Legacy\ModuleCategoriesManager(); |
28 | 28 | |
29 | 29 | // assign module_params to internal params |
30 | -foreach( $_module_params as $param => $value ) |
|
30 | +foreach ($_module_params as $param => $value) |
|
31 | 31 | { |
32 | - $cm->set( $param, $value ); |
|
32 | + $cm->set($param, $value); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | // catch the request actions |
36 | -include_once $cm->get('inc_dir') . 'request_trigger.inc.php'; |
|
36 | +include_once $cm->get('inc_dir').'request_trigger.inc.php'; |
|
37 | 37 | |
38 | -if( !$categories = $cm->getCategories() ) |
|
38 | +if (!$categories = $cm->getCategories()) |
|
39 | 39 | { |
40 | - setcookie('webfxtab_manage-categories-pane', 0 ); |
|
41 | - $cm->addMessage( $cm->txt('Currently no categories available... JUST ADD A NEW ONE!'), 'global' ); |
|
40 | + setcookie('webfxtab_manage-categories-pane', 0); |
|
41 | + $cm->addMessage($cm->txt('Currently no categories available... JUST ADD A NEW ONE!'), 'global'); |
|
42 | 42 | } |
43 | 43 | |
44 | -$cm->renderView('main', $categories ); |
|
44 | +$cm->renderView('main', $categories); |
|
45 | 45 | return; |