@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | // View Account |
29 | 29 | $ret[] = [ |
30 | 30 | 'name' => XoopsLocale::VIEW_ACCOUNT, |
31 | - 'link' => $xoops->url('userinfo.php?uid=' . $xoops->user->getVar('uid')), |
|
31 | + 'link' => $xoops->url('userinfo.php?uid='.$xoops->user->getVar('uid')), |
|
32 | 32 | 'icon' => 'glyphicon-user', |
33 | 33 | ]; |
34 | 34 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | $name = XoopsLocale::INBOX; |
60 | 60 | if ($pm_count = $pm_handler->getCount($criteria)) { |
61 | - $name = XoopsLocale::INBOX . ' <span class="badge">' . $pm_count . '</span>'; |
|
61 | + $name = XoopsLocale::INBOX.' <span class="badge">'.$pm_count.'</span>'; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | $ret[] = [ |
@@ -75,13 +75,13 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | $xoops = \Xoops::getInstance(); |
78 | - $flagDir = $this->flagSource . $sizeDir . '/'; |
|
79 | - $flagFile = $flagDir . $countryCode . '.png'; |
|
78 | + $flagDir = $this->flagSource.$sizeDir.'/'; |
|
79 | + $flagFile = $flagDir.$countryCode.'.png'; |
|
80 | 80 | |
81 | 81 | $file = $xoops->path($flagFile); |
82 | 82 | // switch to unknown if file is not readable |
83 | 83 | if (!is_readable($file)) { |
84 | - $flagFile = $flagDir . '_unknown.png'; |
|
84 | + $flagFile = $flagDir.'_unknown.png'; |
|
85 | 85 | } |
86 | 86 | $url = $xoops->url($flagFile); |
87 | 87 | return $url; |
@@ -94,24 +94,24 @@ discard block |
||
94 | 94 | * |
95 | 95 | * @var string[] |
96 | 96 | */ |
97 | - private $overrideMap = array ( |
|
98 | - 'AC' => 'SH', // *Ascension Island part of Saint Helena, Ascension and Tristan da Cunha |
|
99 | - 'BQ' => 'NL', // Caribbean Netherlands |
|
100 | - 'BV' => 'NO', // Bouvet Island, dependency of Norway |
|
101 | - 'CP' => 'FR', // *Clipperton Island, overseas possession of France |
|
102 | - 'DG' => 'GB', // *Diego Garcia, British Indian Ocean Territory disputed sovereignty |
|
103 | - 'EA' => 'ES', // *Ceuta & Melilla, Spanish cities on the north coast of Africa |
|
104 | - 'GF' => 'FR', // French Guiana, overseas region of France |
|
105 | - 'GP' => 'FR', // Guadeloupe, overseas region of France |
|
106 | - 'HM' => 'AU', // Heard & McDonald Islands, Australian external territory |
|
107 | - 'IO' => 'GB', // British Indian Ocean Territory |
|
108 | - 'PM' => 'FR', // St. Pierre & Miquelon, territorial overseas collectivity of France |
|
109 | - 'RE' => 'FR', // Réunion, overseas region of France |
|
110 | - 'SJ' => 'NO', // Svalbard & Jan Mayen, integrated parts of Norway not allocated to counties |
|
111 | - 'SX' => 'NL', // Sint Maarten, constituent country of the Kingdom of the Netherlands |
|
112 | - 'TA' => 'SH', // *Tristan da Cunha part of Saint Helena, Ascension and Tristan da Cunha |
|
113 | - 'UM' => 'US', // U.S. Outlying Islands |
|
114 | - 'XK' => '_kosovo', // (User-assigned range) temporary assigned code |
|
97 | + private $overrideMap = array( |
|
98 | + 'AC' => 'SH', // *Ascension Island part of Saint Helena, Ascension and Tristan da Cunha |
|
99 | + 'BQ' => 'NL', // Caribbean Netherlands |
|
100 | + 'BV' => 'NO', // Bouvet Island, dependency of Norway |
|
101 | + 'CP' => 'FR', // *Clipperton Island, overseas possession of France |
|
102 | + 'DG' => 'GB', // *Diego Garcia, British Indian Ocean Territory disputed sovereignty |
|
103 | + 'EA' => 'ES', // *Ceuta & Melilla, Spanish cities on the north coast of Africa |
|
104 | + 'GF' => 'FR', // French Guiana, overseas region of France |
|
105 | + 'GP' => 'FR', // Guadeloupe, overseas region of France |
|
106 | + 'HM' => 'AU', // Heard & McDonald Islands, Australian external territory |
|
107 | + 'IO' => 'GB', // British Indian Ocean Territory |
|
108 | + 'PM' => 'FR', // St. Pierre & Miquelon, territorial overseas collectivity of France |
|
109 | + 'RE' => 'FR', // Réunion, overseas region of France |
|
110 | + 'SJ' => 'NO', // Svalbard & Jan Mayen, integrated parts of Norway not allocated to counties |
|
111 | + 'SX' => 'NL', // Sint Maarten, constituent country of the Kingdom of the Netherlands |
|
112 | + 'TA' => 'SH', // *Tristan da Cunha part of Saint Helena, Ascension and Tristan da Cunha |
|
113 | + 'UM' => 'US', // U.S. Outlying Islands |
|
114 | + 'XK' => '_kosovo', // (User-assigned range) temporary assigned code |
|
115 | 115 | ); |
116 | 116 | |
117 | 117 | /** |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | list ($k, $v) = each($key); |
46 | 46 | |
47 | 47 | // Set string representation |
48 | - $key = $k . '[' . $v . ']'; |
|
48 | + $key = $k.'['.$v.']'; |
|
49 | 49 | |
50 | 50 | // Set expiration time to -1hr (will cause browser deletion) |
51 | 51 | setcookie($key, false, time() - 3600); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | foreach ($_COOKIE[$key] as $k => $v) |
61 | 61 | { |
62 | 62 | // Set string representation |
63 | - $cookie = $key . '[' . $k . ']'; |
|
63 | + $cookie = $key.'['.$k.']'; |
|
64 | 64 | |
65 | 65 | // Set expiration time to -1hr (will cause browser deletion) |
66 | 66 | setcookie($cookie, false, time() - 3600); |
@@ -138,12 +138,12 @@ discard block |
||
138 | 138 | public static function set( |
139 | 139 | $key, |
140 | 140 | $value, |
141 | - $expire = 0, /* Default expire time (session, 1 week = 604800) */ |
|
142 | - $path = '', /* Default path */ |
|
143 | - $domain = '', /* Default domain */ |
|
144 | - $secure = false, /* Does this cookie need a secure HTTPS connection? */ |
|
141 | + $expire = 0, /* Default expire time (session, 1 week = 604800) */ |
|
142 | + $path = '', /* Default path */ |
|
143 | + $domain = '', /* Default domain */ |
|
144 | + $secure = false, /* Does this cookie need a secure HTTPS connection? */ |
|
145 | 145 | $httponly = true /* Can non-HTTP services access this cookie (IE: javascript)? */ |
146 | - ){ |
|
146 | + ) { |
|
147 | 147 | // Make sure they aren't trying to set a reserved word |
148 | 148 | if (!in_array($key, self::$_reserved)) |
149 | 149 | { |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | list ($k, $v) = each($key); |
172 | 172 | |
173 | 173 | // Set string representation |
174 | - $key = $k . '[' . $v . ']'; |
|
174 | + $key = $k.'['.$v.']'; |
|
175 | 175 | } |
176 | 176 | } |
177 | 177 |
@@ -95,11 +95,15 @@ discard block |
||
95 | 95 | list ($k, $v) = each($key); |
96 | 96 | |
97 | 97 | // Check for key/value pair and return |
98 | - if (isset($_COOKIE[$k][$v])) return true; |
|
98 | + if (isset($_COOKIE[$k][$v])) { |
|
99 | + return true; |
|
100 | + } |
|
99 | 101 | } |
100 | 102 | |
101 | 103 | // If key exists, return true |
102 | - else if (isset($_COOKIE[$key])) return true; |
|
104 | + else if (isset($_COOKIE[$key])) { |
|
105 | + return true; |
|
106 | + } |
|
103 | 107 | |
104 | 108 | // Key does not exist |
105 | 109 | return false; |
@@ -118,14 +122,20 @@ discard block |
||
118 | 122 | list ($k, $v) = each($key); |
119 | 123 | |
120 | 124 | // Check for key/value pair and return |
121 | - if (isset($_COOKIE[$k][$v])) return $_COOKIE[$k][$v]; |
|
125 | + if (isset($_COOKIE[$k][$v])) { |
|
126 | + return $_COOKIE[$k][$v]; |
|
127 | + } |
|
122 | 128 | } |
123 | 129 | |
124 | 130 | // Return single key if it's set |
125 | - else if (isset($_COOKIE[$key])) return $_COOKIE[$key]; |
|
131 | + else if (isset($_COOKIE[$key])) { |
|
132 | + return $_COOKIE[$key]; |
|
133 | + } |
|
126 | 134 | |
127 | 135 | // Otherwise return null |
128 | - else return null; |
|
136 | + else { |
|
137 | + return null; |
|
138 | + } |
|
129 | 139 | } |
130 | 140 | |
131 | 141 | // Return the cookie array |
@@ -155,7 +165,9 @@ discard block |
||
155 | 165 | } |
156 | 166 | |
157 | 167 | // Otherwise, throw an error |
158 | - else Error::warning('Could not set key -- it is reserved.', __CLASS__); |
|
168 | + else { |
|
169 | + Error::warning('Could not set key -- it is reserved.', __CLASS__); |
|
170 | + } |
|
159 | 171 | } |
160 | 172 | |
161 | 173 | // Converts strings to arrays (or vice versa if toString = true) |
@@ -72,7 +72,6 @@ discard block |
||
72 | 72 | |
73 | 73 | /** |
74 | 74 | * Add link to breadcrumb |
75 | - |
|
76 | 75 | */ |
77 | 76 | function addLink($title = '', $link = '', $home = false) |
78 | 77 | { |
@@ -83,7 +82,6 @@ discard block |
||
83 | 82 | |
84 | 83 | /** |
85 | 84 | * Add Help link |
86 | - |
|
87 | 85 | */ |
88 | 86 | function addHelp($link = '') |
89 | 87 | { |
@@ -92,7 +90,6 @@ discard block |
||
92 | 90 | |
93 | 91 | /** |
94 | 92 | * Add Tips |
95 | - |
|
96 | 93 | */ |
97 | 94 | function addTips($value) |
98 | 95 | { |
@@ -101,7 +98,6 @@ discard block |
||
101 | 98 | |
102 | 99 | /** |
103 | 100 | * Render System BreadCrumb |
104 | - |
|
105 | 101 | */ |
106 | 102 | function render() |
107 | 103 | { |
@@ -115,34 +115,34 @@ |
||
115 | 115 | } |
116 | 116 | } |
117 | 117 | // Call template |
118 | - if (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/system/language/' . $xoops->getConfig('language') . '/help/' . $this->_directory . '.html')) { |
|
118 | + if (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/system/language/'.$xoops->getConfig('language').'/help/'.$this->_directory.'.html')) { |
|
119 | 119 | $xoops->tpl() |
120 | - ->assign('help_content', \XoopsBaseConfig::get('root-path') . '/modules/system/language/' . $xoops->getConfig('language') . '/help/' . $this->_directory . '.html'); |
|
120 | + ->assign('help_content', \XoopsBaseConfig::get('root-path').'/modules/system/language/'.$xoops->getConfig('language').'/help/'.$this->_directory.'.html'); |
|
121 | 121 | } else { |
122 | - if (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/system/language/english/help/' . $this->_directory . '.html')) { |
|
122 | + if (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/system/language/english/help/'.$this->_directory.'.html')) { |
|
123 | 123 | $xoops->tpl() |
124 | - ->assign('help_content', \XoopsBaseConfig::get('root-path') . '/modules/system/language/english/help/' . $this->_directory . '.html'); |
|
124 | + ->assign('help_content', \XoopsBaseConfig::get('root-path').'/modules/system/language/english/help/'.$this->_directory.'.html'); |
|
125 | 125 | } else { |
126 | 126 | $xoops->tpl()->assign('load_error', 1); |
127 | 127 | } |
128 | 128 | } |
129 | 129 | } else { |
130 | - $out = $menu = '<style type="text/css" media="screen">@import ' . \XoopsBaseConfig::get('url') . '/modules/system/css/menu.css;</style>'; |
|
130 | + $out = $menu = '<style type="text/css" media="screen">@import '.\XoopsBaseConfig::get('url').'/modules/system/css/menu.css;</style>'; |
|
131 | 131 | $out .= '<ul id="xo-breadcrumb">'; |
132 | 132 | foreach ($this->_bread as $menu) { |
133 | 133 | if ($menu['home']) { |
134 | - $out .= '<li><a href="' . $menu['link'] . '" title="' . $menu['title'] . '"><img src="images/home.png" alt="' . $menu['title'] . '" class="home" /></a></li>'; |
|
134 | + $out .= '<li><a href="'.$menu['link'].'" title="'.$menu['title'].'"><img src="images/home.png" alt="'.$menu['title'].'" class="home" /></a></li>'; |
|
135 | 135 | } else { |
136 | 136 | if ($menu['link'] != '') { |
137 | - $out .= '<li><a href="' . $menu['link'] . '" title="' . $menu['title'] . '">' . $menu['title'] . '</a></li>'; |
|
137 | + $out .= '<li><a href="'.$menu['link'].'" title="'.$menu['title'].'">'.$menu['title'].'</a></li>'; |
|
138 | 138 | } else { |
139 | - $out .= '<li>' . $menu['title'] . '</li>'; |
|
139 | + $out .= '<li>'.$menu['title'].'</li>'; |
|
140 | 140 | } |
141 | 141 | } |
142 | 142 | } |
143 | 143 | $out .= '</ul>'; |
144 | 144 | if ($this->_tips) { |
145 | - $out .= '<div class="tips">' . $this->_tips . '</div>'; |
|
145 | + $out .= '<div class="tips">'.$this->_tips.'</div>'; |
|
146 | 146 | } |
147 | 147 | echo $out; |
148 | 148 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $i = 0; |
68 | 68 | foreach ($this->modulesList as $file) { |
69 | 69 | $file = trim($file); |
70 | - if (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $file . '/xoops_version.php')) { |
|
70 | + if (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$file.'/xoops_version.php')) { |
|
71 | 71 | clearstatcache(); |
72 | 72 | /* @var $module XoopsModule */ |
73 | 73 | $module = $module_handler->create(); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | ) { |
98 | 98 | $module->setInfo( |
99 | 99 | 'link_pref', |
100 | - \XoopsBaseConfig::get('url') . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' |
|
100 | + \XoopsBaseConfig::get('url').'/modules/system/admin.php?fct=preferences&op=showmod&mod=' |
|
101 | 101 | . $module->getInfo('mid') |
102 | 102 | ); |
103 | 103 | } |
@@ -106,28 +106,28 @@ discard block |
||
106 | 106 | } |
107 | 107 | $module->setInfo('version', round($module->getInfo('version'), 2)); |
108 | 108 | if (XoopsLoad::fileExists( |
109 | - \XoopsBaseConfig::get('root-path') . '/modules/' . $module->getInfo('dirname') . '/icons/logo_small.png' |
|
109 | + \XoopsBaseConfig::get('root-path').'/modules/'.$module->getInfo('dirname').'/icons/logo_small.png' |
|
110 | 110 | )) { |
111 | 111 | $module->setInfo( |
112 | 112 | 'logo_small', |
113 | - \XoopsBaseConfig::get('url') . '/modules/' . $module->getInfo('dirname') . '/icons/logo_small.png' |
|
113 | + \XoopsBaseConfig::get('url').'/modules/'.$module->getInfo('dirname').'/icons/logo_small.png' |
|
114 | 114 | ); |
115 | 115 | } else { |
116 | - $module->setInfo('logo_small', \XoopsBaseConfig::get('url') . '/media/xoops/images/icons/16/default.png'); |
|
116 | + $module->setInfo('logo_small', \XoopsBaseConfig::get('url').'/media/xoops/images/icons/16/default.png'); |
|
117 | 117 | } |
118 | 118 | if (XoopsLoad::fileExists( |
119 | - \XoopsBaseConfig::get('root-path') . '/modules/' . $module->getInfo('dirname') . '/icons/logo_large.png' |
|
119 | + \XoopsBaseConfig::get('root-path').'/modules/'.$module->getInfo('dirname').'/icons/logo_large.png' |
|
120 | 120 | )) { |
121 | 121 | $module->setInfo( |
122 | 122 | 'logo_large', |
123 | - \XoopsBaseConfig::get('url') . '/modules/' . $module->getInfo('dirname') . '/icons/logo_large.png' |
|
123 | + \XoopsBaseConfig::get('url').'/modules/'.$module->getInfo('dirname').'/icons/logo_large.png' |
|
124 | 124 | ); |
125 | 125 | } else { |
126 | - $module->setInfo('logo_large', \XoopsBaseConfig::get('url') . '/media/xoops/images/icons/32/default.png'); |
|
126 | + $module->setInfo('logo_large', \XoopsBaseConfig::get('url').'/media/xoops/images/icons/32/default.png'); |
|
127 | 127 | } |
128 | 128 | $module->setInfo( |
129 | 129 | 'link_admin', |
130 | - \XoopsBaseConfig::get('url') . '/modules/' . $module->getInfo('dirname') . '/' . $module->getInfo('adminindex') |
|
130 | + \XoopsBaseConfig::get('url').'/modules/'.$module->getInfo('dirname').'/'.$module->getInfo('adminindex') |
|
131 | 131 | ); |
132 | 132 | $module->setInfo('options', $module->getAdminMenu()); |
133 | 133 | $ret[] = $module; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | $ret = array(); |
154 | 154 | $i = 0; |
155 | 155 | foreach ($this->modulesList as $file) { |
156 | - if (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path') . '/modules/' . $file . '/xoops_version.php')) { |
|
156 | + if (XoopsLoad::fileExists(\XoopsBaseConfig::get('root-path').'/modules/'.$file.'/xoops_version.php')) { |
|
157 | 157 | clearstatcache(); |
158 | 158 | $file = trim($file); |
159 | 159 | if (!in_array($file, $this->modulesDirnames)) { |
@@ -70,12 +70,12 @@ discard block |
||
70 | 70 | |
71 | 71 | $s_cat_checkbox = new Xoops\Form\Checkbox('', "system_catids", $s_cat_value); |
72 | 72 | //$s_cat_checkbox->columns = 6; |
73 | - $admin_dir = \XoopsBaseConfig::get('root-path') . '/modules/system/admin/'; |
|
73 | + $admin_dir = \XoopsBaseConfig::get('root-path').'/modules/system/admin/'; |
|
74 | 74 | $dirlist = XoopsLists::getDirListAsArray($admin_dir); |
75 | 75 | foreach ($dirlist as $file) { |
76 | - include \XoopsBaseConfig::get('root-path') . '/modules/system/admin/' . $file . '/xoops_version.php'; |
|
76 | + include \XoopsBaseConfig::get('root-path').'/modules/system/admin/'.$file.'/xoops_version.php'; |
|
77 | 77 | if (!empty($modversion['category'])) { |
78 | - if ($xoops->getModuleConfig('active_' . $file, 'system') == 1) { |
|
78 | + if ($xoops->getModuleConfig('active_'.$file, 'system') == 1) { |
|
79 | 79 | $s_cat_checkbox->addOption($modversion['category'], $modversion['name']); |
80 | 80 | } |
81 | 81 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | $block_handler = $xoops->getHandlerBlock(); |
126 | 126 | $blocks_obj = $block_handler->getDistinctObjects( |
127 | - new Criteria("mid", "('" . implode("', '", array_keys($module_list)) . "')", "IN"), |
|
127 | + new Criteria("mid", "('".implode("', '", array_keys($module_list))."')", "IN"), |
|
128 | 128 | true |
129 | 129 | ); |
130 | 130 | |
@@ -146,12 +146,12 @@ discard block |
||
146 | 146 | |
147 | 147 | $new_blocks_array = array(); |
148 | 148 | foreach ($blocks_module[$mid] as $key => $value) { |
149 | - $new_blocks_array[$key] = "<a href='" . \XoopsBaseConfig::get('url') |
|
149 | + $new_blocks_array[$key] = "<a href='".\XoopsBaseConfig::get('url') |
|
150 | 150 | . "/modules/system/admin.php?fct=blocksadmin&op=edit&bid={$key}' " |
151 | 151 | . "title='ID: {$key}' rel='external'>{$value}</a>"; |
152 | 152 | } |
153 | 153 | $r_block_checkbox = new Xoops\Form\Checkbox( |
154 | - '<strong>' . $module_list[$mid] . '</strong><br />', |
|
154 | + '<strong>'.$module_list[$mid].'</strong><br />', |
|
155 | 155 | "read_bids[]", |
156 | 156 | $r_block_value |
157 | 157 | ); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $configs = $mod->getInfo('config'); |
58 | 58 | $configNames = array(); |
59 | 59 | foreach (array_keys($configs) as $i) { |
60 | - $configNames[$configs[$i]['name']] =& $configs[$i]; |
|
60 | + $configNames[$configs[$i]['name']] = & $configs[$i]; |
|
61 | 61 | } |
62 | 62 | $configCats = $mod->getInfo('configcat'); |
63 | 63 | if (!$configCats) { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | $tabTray = new Xoops\Form\TabTray('', 'pref_tabtay'); |
86 | 86 | $tabs = array(); |
87 | 87 | foreach ($configCats as $name => $info) { |
88 | - $tabs[$name] = new Xoops\Form\Tab($info['name'], 'pref_tab_' . $name); |
|
88 | + $tabs[$name] = new Xoops\Form\Tab($info['name'], 'pref_tab_'.$name); |
|
89 | 89 | if (isset($info['description']) && $info['description'] != '') { |
90 | 90 | $tabs[$name]->addElement(new Xoops\Form\Label('', $info['description'])); |
91 | 91 | } |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | } elseif ($mod->getInfo('adminindex')) { |
100 | 100 | $this->addElement(new Xoops\Form\Hidden( |
101 | 101 | 'redirect', |
102 | - \XoopsBaseConfig::get('url') . '/modules/' . $mod->getVar('dirname') . '/' . $mod->getInfo('adminindex') |
|
102 | + \XoopsBaseConfig::get('url').'/modules/'.$mod->getVar('dirname').'/'.$mod->getInfo('adminindex') |
|
103 | 103 | )); |
104 | 104 | } |
105 | 105 | $count = count($obj); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | $ele = new Xoops\Form\ElementTray($title, '<br />'); |
261 | 261 | foreach (array_keys($modules) as $mid) { |
262 | 262 | $c_val = isset($currrent_val[$mid]) ? (int)($currrent_val[$mid]) : null; |
263 | - $selform = new Xoops\Form\Select($modules[$mid]->getVar('name'), $obj[$i]->getVar('conf_name') . "[$mid]", $c_val); |
|
263 | + $selform = new Xoops\Form\Select($modules[$mid]->getVar('name'), $obj[$i]->getVar('conf_name')."[$mid]", $c_val); |
|
264 | 264 | $selform->addOptionArray($cache_options); |
265 | 265 | $ele->addElement($selform); |
266 | 266 | unset($selform); |
@@ -152,17 +152,17 @@ |
||
152 | 152 | if (count($btemplate) > 0) { |
153 | 153 | $this->addElement(new Xoops\Form\Label( |
154 | 154 | XoopsLocale::CONTENT, |
155 | - '<a href="' . \XoopsBaseConfig::get('url') . '/modules/system/admin.php?fct=tplsets&op=edittpl&id=' |
|
156 | - . $btemplate[0]->getVar('tpl_id') . '">' . SystemLocale::EDIT_TEMPLATE . '</a>' |
|
155 | + '<a href="'.\XoopsBaseConfig::get('url').'/modules/system/admin.php?fct=tplsets&op=edittpl&id=' |
|
156 | + . $btemplate[0]->getVar('tpl_id').'">'.SystemLocale::EDIT_TEMPLATE.'</a>' |
|
157 | 157 | )); |
158 | 158 | } else { |
159 | 159 | $btemplate2 = $tplfile_handler->find('default', 'block', $this->obj->getVar('bid')); |
160 | 160 | if (count($btemplate2) > 0) { |
161 | 161 | $this->addElement(new Xoops\Form\Label( |
162 | 162 | XoopsLocale::CONTENT, |
163 | - '<a href="' . \XoopsBaseConfig::get('url') . '/modules/system/admin.php?fct=tplsets&op=edittpl&id=' |
|
164 | - . $btemplate2[0]->getVar('tpl_id') . '" rel="external">' |
|
165 | - . SystemLocale::EDIT_TEMPLATE . '</a>' |
|
163 | + '<a href="'.\XoopsBaseConfig::get('url').'/modules/system/admin.php?fct=tplsets&op=edittpl&id=' |
|
164 | + . $btemplate2[0]->getVar('tpl_id').'" rel="external">' |
|
165 | + . SystemLocale::EDIT_TEMPLATE.'</a>' |
|
166 | 166 | )); |
167 | 167 | } |
168 | 168 | } |
@@ -145,7 +145,7 @@ |
||
145 | 145 | } else { |
146 | 146 | //add each user groups |
147 | 147 | foreach ($groups as $key => $group) { |
148 | - $group_select[] = new Xoops\Form\Hidden('groups[' . $key . ']', $group); |
|
148 | + $group_select[] = new Xoops\Form\Hidden('groups['.$key.']', $group); |
|
149 | 149 | } |
150 | 150 | } |
151 | 151 | foreach ($group_select as $group) { |