@@ -61,9 +61,9 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (in_array($name, $this->TOGGLE_EFFECTS)) { |
| 64 | - return "Effect.toggle($element,'" . str_replace('toggle_', '', $name) . "'," . $this->_options_for_javascript($js_options) . ')'; |
|
| 64 | + return "Effect.toggle($element,'".str_replace('toggle_', '', $name)."',".$this->_options_for_javascript($js_options).')'; |
|
| 65 | 65 | } else { |
| 66 | - return 'new Effect.' . ucwords($name) . "($element," . $this->_options_for_javascript($js_options) . ')'; |
|
| 66 | + return 'new Effect.'.ucwords($name)."($element,".$this->_options_for_javascript($js_options).')'; |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | // } |
| 94 | 94 | |
| 95 | 95 | //if (isset($option['onUpdate'])) { |
| 96 | - $options['onUpdate'] = 'function(){' . $this->remote_function($options) . '}'; |
|
| 96 | + $options['onUpdate'] = 'function(){'.$this->remote_function($options).'}'; |
|
| 97 | 97 | //} |
| 98 | 98 | |
| 99 | 99 | foreach ($options as $var => $val) { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | foreach ($arr as $var) { |
| 108 | 108 | if (isset($options[$var])) { |
| 109 | - $options[$var] = "'" . $options[$var] . "'"; |
|
| 109 | + $options[$var] = "'".$options[$var]."'"; |
|
| 110 | 110 | } |
| 111 | 111 | } |
| 112 | 112 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $options['only'] = $this->_array_or_string_for_javascript($options['only']); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - return "Sortable.create('$element_id'," . $this->_options_for_javascript($options) . ')'; |
|
| 121 | + return "Sortable.create('$element_id',".$this->_options_for_javascript($options).')'; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public function _dragable_element_js($element_id, $options) |
| 130 | 130 | { |
| 131 | - return 'new Draggable(\'' . $element_id . '\',' . $this->_options_for_javascript($options) . ')'; |
|
| 131 | + return 'new Draggable(\''.$element_id.'\','.$this->_options_for_javascript($options).')'; |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | //if (isset($option['onDrop'])) |
| 147 | 147 | |
| 148 | 148 | { |
| 149 | - $options['onDrop'] = 'function(element){' . $this->remote_function($options) . '}'; |
|
| 149 | + $options['onDrop'] = 'function(element){'.$this->remote_function($options).'}'; |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | if (is_array($options)) { |
@@ -162,10 +162,10 @@ discard block |
||
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | if (isset($options['hoverclass'])) { |
| 165 | - $options['hoverclass'] = "'" . $options['hoverclass'] . "'"; |
|
| 165 | + $options['hoverclass'] = "'".$options['hoverclass']."'"; |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - return 'Droppables.add(\'' . $element_id . '\',' . $this->_options_for_javascript($options) . ')'; |
|
| 168 | + return 'Droppables.add(\''.$element_id.'\','.$this->_options_for_javascript($options).')'; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | ///////////////////////////////////////////////////////////////////////////////////// |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | { |
| 183 | 183 | $function = 'new Ajax.InPlaceEditor('; |
| 184 | 184 | $function .= "'$field_id', "; |
| 185 | - $function .= "'" . $options['url'] . "'"; |
|
| 185 | + $function .= "'".$options['url']."'"; |
|
| 186 | 186 | |
| 187 | 187 | $js_options = []; |
| 188 | 188 | if (isset($options['cancel_text'])) { |
@@ -204,10 +204,10 @@ discard block |
||
| 204 | 204 | $js_options['size'] = $options['size']; |
| 205 | 205 | } |
| 206 | 206 | if (isset($options['external_control'])) { |
| 207 | - $js_options['externalControl'] = "'" . $options['external_control'] . "'"; |
|
| 207 | + $js_options['externalControl'] = "'".$options['external_control']."'"; |
|
| 208 | 208 | } |
| 209 | 209 | if (isset($options['load_text_url'])) { |
| 210 | - $js_options['loadTextURL'] = "'" . $options['load_text_url'] . "'"; |
|
| 210 | + $js_options['loadTextURL'] = "'".$options['load_text_url']."'"; |
|
| 211 | 211 | } |
| 212 | 212 | if (isset($options['options'])) { |
| 213 | 213 | $js_options['ajaxOptions'] = $options['options']; |
@@ -216,10 +216,10 @@ discard block |
||
| 216 | 216 | $js_options['evalScripts'] = $options['script']; |
| 217 | 217 | } |
| 218 | 218 | if (isset($options['with'])) { |
| 219 | - $js_options['callback'] = 'function(form) { return ' . $options['with'] . ' }'; |
|
| 219 | + $js_options['callback'] = 'function(form) { return '.$options['with'].' }'; |
|
| 220 | 220 | } |
| 221 | 221 | |
| 222 | - $function .= ', ' . $this->_options_for_javascript($js_options) . ' )'; |
|
| 222 | + $function .= ', '.$this->_options_for_javascript($js_options).' )'; |
|
| 223 | 223 | if ($tag) { |
| 224 | 224 | return $this->tag($function); |
| 225 | 225 | } else { |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | public function in_place_editor_field($object, $tag_options = null, $in_place_editor_options = null) |
| 237 | 237 | { |
| 238 | 238 | $ret_val = ''; |
| 239 | - $ret_val .= '<span id="' . $object . '" class="in_place_editor_field">' . (isset($tag_options['value']) ? $tag_options['value'] : '') . '</span>'; |
|
| 239 | + $ret_val .= '<span id="'.$object.'" class="in_place_editor_field">'.(isset($tag_options['value']) ? $tag_options['value'] : '').'</span>'; |
|
| 240 | 240 | $ret_val .= $this->in_place_editor($object, $in_place_editor_options); |
| 241 | 241 | |
| 242 | 242 | return $ret_val; |
@@ -249,23 +249,23 @@ discard block |
||
| 249 | 249 | */ |
| 250 | 250 | public function auto_complete_field($field_id, $options) |
| 251 | 251 | { |
| 252 | - $function = "var $field_id" . '_auto_completer = new Ajax.Autocompleter('; |
|
| 252 | + $function = "var $field_id".'_auto_completer = new Ajax.Autocompleter('; |
|
| 253 | 253 | $function .= "'$field_id', "; |
| 254 | - $function .= "'" . (isset($options['update']) ? $options['update'] : $field_id . '_auto_complete') . "', "; |
|
| 255 | - $function .= "'" . $options['url'] . "'"; |
|
| 254 | + $function .= "'".(isset($options['update']) ? $options['update'] : $field_id.'_auto_complete')."', "; |
|
| 255 | + $function .= "'".$options['url']."'"; |
|
| 256 | 256 | |
| 257 | 257 | $js_options = []; |
| 258 | 258 | if (isset($options['tokens'])) { |
| 259 | 259 | $js_options['tokens'] = $this->javascript->_array_or_string_for_javascript($options['tokens']); |
| 260 | 260 | } |
| 261 | 261 | if (isset($options['with'])) { |
| 262 | - $js_options['callback'] = 'function(element, value) { return ' . $options['with'] . ' }'; |
|
| 262 | + $js_options['callback'] = 'function(element, value) { return '.$options['with'].' }'; |
|
| 263 | 263 | } |
| 264 | 264 | if (isset($options['indicator'])) { |
| 265 | - $js_options['indicator'] = "'" . $options['indicator'] . "'"; |
|
| 265 | + $js_options['indicator'] = "'".$options['indicator']."'"; |
|
| 266 | 266 | } |
| 267 | 267 | if (isset($options['select'])) { |
| 268 | - $js_options['select'] = "'" . $options['select'] . "'"; |
|
| 268 | + $js_options['select'] = "'".$options['select']."'"; |
|
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 | foreach (['on_show' => 'onShow', 'on_hide' => 'onHide', 'min_chars' => 'min_chars'] as $var => $val) { |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | } |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | - $function .= ', ' . $this->_options_for_javascript($js_options) . ' )'; |
|
| 277 | + $function .= ', '.$this->_options_for_javascript($js_options).' )'; |
|
| 278 | 278 | |
| 279 | 279 | return $this->tag($function); |
| 280 | 280 | } |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | . '" ' : '') |
| 317 | 317 | . '>'; |
| 318 | 318 | |
| 319 | - $ret_val .= '<div id="' . $object . '_auto_complete" class="auto_complete"></div>'; |
|
| 319 | + $ret_val .= '<div id="'.$object.'_auto_complete" class="auto_complete"></div>'; |
|
| 320 | 320 | $ret_val .= $this->auto_complete_field($object, $completion_options); |
| 321 | 321 | |
| 322 | 322 | return $ret_val; |
@@ -61,9 +61,9 @@ discard block |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (in_array($name, $this->TOGGLE_EFFECTS)) { |
| 64 | - return "Effect.toggle($element,'" . str_replace('toggle_', '', $name) . "'," . $this->_options_for_javascript($js_options) . ')'; |
|
| 64 | + return "Effect.toggle($element,'".str_replace('toggle_', '', $name)."',".$this->_options_for_javascript($js_options).')'; |
|
| 65 | 65 | } else { |
| 66 | - return 'new Effect.' . ucwords($name) . "($element," . $this->_options_for_javascript($js_options) . ')'; |
|
| 66 | + return 'new Effect.'.ucwords($name)."($element,".$this->_options_for_javascript($js_options).')'; |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | //if (isset($option['onUpdate'])) |
| 98 | 98 | { |
| 99 | - $options['onUpdate'] = 'function(){' . $this->remote_function($options) . '}'; |
|
| 99 | + $options['onUpdate'] = 'function(){'.$this->remote_function($options).'}'; |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | foreach ($options as $var => $val) { |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | foreach ($arr as $var) { |
| 111 | 111 | if (isset($options[$var])) { |
| 112 | - $options[$var] = "'" . $options[$var] . "'"; |
|
| 112 | + $options[$var] = "'".$options[$var]."'"; |
|
| 113 | 113 | } |
| 114 | 114 | } |
| 115 | 115 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $options['only'] = $this->_array_or_string_for_javascript($options['only']); |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - return "Sortable.create('$element_id'," . $this->_options_for_javascript($options) . ')'; |
|
| 124 | + return "Sortable.create('$element_id',".$this->_options_for_javascript($options).')'; |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | public function _dragable_element_js($element_id, $options) |
| 133 | 133 | { |
| 134 | - return 'new Draggable(\'' . $element_id . '\',' . $this->_options_for_javascript($options) . ')'; |
|
| 134 | + return 'new Draggable(\''.$element_id.'\','.$this->_options_for_javascript($options).')'; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | //if (isset($option['onDrop'])) |
| 151 | 151 | { |
| 152 | - $options['onDrop'] = 'function(element){' . $this->remote_function($options) . '}'; |
|
| 152 | + $options['onDrop'] = 'function(element){'.$this->remote_function($options).'}'; |
|
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | if (is_array($options)) { |
@@ -165,10 +165,10 @@ discard block |
||
| 165 | 165 | } |
| 166 | 166 | |
| 167 | 167 | if (isset($options['hoverclass'])) { |
| 168 | - $options['hoverclass'] = "'" . $options['hoverclass'] . "'"; |
|
| 168 | + $options['hoverclass'] = "'".$options['hoverclass']."'"; |
|
| 169 | 169 | } |
| 170 | 170 | |
| 171 | - return 'Droppables.add(\'' . $element_id . '\',' . $this->_options_for_javascript($options) . ')'; |
|
| 171 | + return 'Droppables.add(\''.$element_id.'\','.$this->_options_for_javascript($options).')'; |
|
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | ///////////////////////////////////////////////////////////////////////////////////// |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | { |
| 186 | 186 | $function = 'new Ajax.InPlaceEditor('; |
| 187 | 187 | $function .= "'$field_id', "; |
| 188 | - $function .= "'" . $options['url'] . "'"; |
|
| 188 | + $function .= "'".$options['url']."'"; |
|
| 189 | 189 | |
| 190 | 190 | $js_options = []; |
| 191 | 191 | if (isset($options['cancel_text'])) { |
@@ -207,10 +207,10 @@ discard block |
||
| 207 | 207 | $js_options['size'] = $options['size']; |
| 208 | 208 | } |
| 209 | 209 | if (isset($options['external_control'])) { |
| 210 | - $js_options['externalControl'] = "'" . $options['external_control'] . "'"; |
|
| 210 | + $js_options['externalControl'] = "'".$options['external_control']."'"; |
|
| 211 | 211 | } |
| 212 | 212 | if (isset($options['load_text_url'])) { |
| 213 | - $js_options['loadTextURL'] = "'" . $options['load_text_url'] . "'"; |
|
| 213 | + $js_options['loadTextURL'] = "'".$options['load_text_url']."'"; |
|
| 214 | 214 | } |
| 215 | 215 | if (isset($options['options'])) { |
| 216 | 216 | $js_options['ajaxOptions'] = $options['options']; |
@@ -219,10 +219,10 @@ discard block |
||
| 219 | 219 | $js_options['evalScripts'] = $options['script']; |
| 220 | 220 | } |
| 221 | 221 | if (isset($options['with'])) { |
| 222 | - $js_options['callback'] = 'function(form) { return ' . $options['with'] . ' }'; |
|
| 222 | + $js_options['callback'] = 'function(form) { return '.$options['with'].' }'; |
|
| 223 | 223 | } |
| 224 | 224 | |
| 225 | - $function .= ', ' . $this->_options_for_javascript($js_options) . ' )'; |
|
| 225 | + $function .= ', '.$this->_options_for_javascript($js_options).' )'; |
|
| 226 | 226 | if ($tag) { |
| 227 | 227 | return $this->tag($function); |
| 228 | 228 | } else { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | public function in_place_editor_field($object, $tag_options = null, $in_place_editor_options = null) |
| 240 | 240 | { |
| 241 | 241 | $ret_val = ''; |
| 242 | - $ret_val .= '<span id="' . $object . '" class="in_place_editor_field">' . (isset($tag_options['value']) ? $tag_options['value'] : '') . '</span>'; |
|
| 242 | + $ret_val .= '<span id="'.$object.'" class="in_place_editor_field">'.(isset($tag_options['value']) ? $tag_options['value'] : '').'</span>'; |
|
| 243 | 243 | $ret_val .= $this->in_place_editor($object, $in_place_editor_options); |
| 244 | 244 | |
| 245 | 245 | return $ret_val; |
@@ -252,23 +252,23 @@ discard block |
||
| 252 | 252 | */ |
| 253 | 253 | public function auto_complete_field($field_id, $options) |
| 254 | 254 | { |
| 255 | - $function = "var $field_id" . '_auto_completer = new Ajax.Autocompleter('; |
|
| 255 | + $function = "var $field_id".'_auto_completer = new Ajax.Autocompleter('; |
|
| 256 | 256 | $function .= "'$field_id', "; |
| 257 | - $function .= "'" . (isset($options['update']) ? $options['update'] : $field_id . '_auto_complete') . "', "; |
|
| 258 | - $function .= "'" . $options['url'] . "'"; |
|
| 257 | + $function .= "'".(isset($options['update']) ? $options['update'] : $field_id.'_auto_complete')."', "; |
|
| 258 | + $function .= "'".$options['url']."'"; |
|
| 259 | 259 | |
| 260 | 260 | $js_options = []; |
| 261 | 261 | if (isset($options['tokens'])) { |
| 262 | 262 | $js_options['tokens'] = $this->javascript->_array_or_string_for_javascript($options['tokens']); |
| 263 | 263 | } |
| 264 | 264 | if (isset($options['with'])) { |
| 265 | - $js_options['callback'] = 'function(element, value) { return ' . $options['with'] . ' }'; |
|
| 265 | + $js_options['callback'] = 'function(element, value) { return '.$options['with'].' }'; |
|
| 266 | 266 | } |
| 267 | 267 | if (isset($options['indicator'])) { |
| 268 | - $js_options['indicator'] = "'" . $options['indicator'] . "'"; |
|
| 268 | + $js_options['indicator'] = "'".$options['indicator']."'"; |
|
| 269 | 269 | } |
| 270 | 270 | if (isset($options['select'])) { |
| 271 | - $js_options['select'] = "'" . $options['select'] . "'"; |
|
| 271 | + $js_options['select'] = "'".$options['select']."'"; |
|
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | foreach (['on_show' => 'onShow', 'on_hide' => 'onHide', 'min_chars' => 'min_chars'] as $var => $val) { |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | } |
| 278 | 278 | } |
| 279 | 279 | |
| 280 | - $function .= ', ' . $this->_options_for_javascript($js_options) . ' )'; |
|
| 280 | + $function .= ', '.$this->_options_for_javascript($js_options).' )'; |
|
| 281 | 281 | |
| 282 | 282 | return $this->tag($function); |
| 283 | 283 | } |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | . '" ' : '') |
| 320 | 320 | . '>'; |
| 321 | 321 | |
| 322 | - $ret_val .= '<div id="' . $object . '_auto_complete" class="auto_complete"></div>'; |
|
| 322 | + $ret_val .= '<div id="'.$object.'_auto_complete" class="auto_complete"></div>'; |
|
| 323 | 323 | $ret_val .= $this->auto_complete_field($object, $completion_options); |
| 324 | 324 | |
| 325 | 325 | return $ret_val; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | $options['form'] = true; |
| 65 | 65 | |
| 66 | - return '<form action="' . $options['url'] . '" onsubmit="' . $this->remote_function($options) . '; return false;" method="' . (isset($options['method']) ? $options['method'] : 'post') . '" >'; |
|
| 66 | + return '<form action="'.$options['url'].'" onsubmit="'.$this->remote_function($options).'; return false;" method="'.(isset($options['method']) ? $options['method'] : 'post').'" >'; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | public function periodically_call_remote($options = null) |
| 113 | 113 | { |
| 114 | 114 | $frequency = isset($options['frequency']) ? $options['frequency'] : 10; |
| 115 | - $code = 'new PeriodicalExecuter(function() {' . $this->remote_function($options) . '},' . $frequency . ')'; |
|
| 115 | + $code = 'new PeriodicalExecuter(function() {'.$this->remote_function($options).'},'.$frequency.')'; |
|
| 116 | 116 | |
| 117 | 117 | return $code; |
| 118 | 118 | } |
@@ -128,22 +128,22 @@ discard block |
||
| 128 | 128 | $update = ''; |
| 129 | 129 | |
| 130 | 130 | if (isset($options['update']) && is_array($options['update'])) { |
| 131 | - $update = isset($options['update']['success']) ? 'success: ' . $options['update']['success'] : ''; |
|
| 131 | + $update = isset($options['update']['success']) ? 'success: '.$options['update']['success'] : ''; |
|
| 132 | 132 | $update .= empty($update) ? '' : ','; |
| 133 | - $update .= isset($options['update']['failure']) ? 'failure: ' . $options['update']['failure'] : ''; |
|
| 133 | + $update .= isset($options['update']['failure']) ? 'failure: '.$options['update']['failure'] : ''; |
|
| 134 | 134 | } else { |
| 135 | 135 | $update .= isset($options['update']) ? $options['update'] : ''; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - $ajax_function = empty($update) ? 'new Ajax.Request(' : 'new Ajax.Updater(\'' . $update . '\','; |
|
| 138 | + $ajax_function = empty($update) ? 'new Ajax.Request(' : 'new Ajax.Updater(\''.$update.'\','; |
|
| 139 | 139 | |
| 140 | - $ajax_function .= "'" . $options['url'] . "'"; |
|
| 141 | - $ajax_function .= ',' . $javascript_options . ')'; |
|
| 140 | + $ajax_function .= "'".$options['url']."'"; |
|
| 141 | + $ajax_function .= ','.$javascript_options.')'; |
|
| 142 | 142 | |
| 143 | - $ajax_function = isset($options['before']) ? $options['before'] . ';' . $ajax_function : $ajax_function; |
|
| 144 | - $ajax_function = isset($options['after']) ? $ajax_function . ';' . $options['after'] : $ajax_function; |
|
| 145 | - $ajax_function = isset($options['condition']) ? 'if (' . $options['condition'] . ') {' . $ajax_function . '}' : $ajax_function; |
|
| 146 | - $ajax_function = isset($options['confirm']) ? 'if ( confirm(\'' . $options['confirm'] . '\' ) ) { ' . $ajax_function . ' } ' : $ajax_function; |
|
| 143 | + $ajax_function = isset($options['before']) ? $options['before'].';'.$ajax_function : $ajax_function; |
|
| 144 | + $ajax_function = isset($options['after']) ? $ajax_function.';'.$options['after'] : $ajax_function; |
|
| 145 | + $ajax_function = isset($options['condition']) ? 'if ('.$options['condition'].') {'.$ajax_function.'}' : $ajax_function; |
|
| 146 | + $ajax_function = isset($options['confirm']) ? 'if ( confirm(\''.$options['confirm'].'\' ) ) { '.$ajax_function.' } ' : $ajax_function; |
|
| 147 | 147 | |
| 148 | 148 | return $ajax_function; |
| 149 | 149 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $options['with'] = 'Form.serialize(this.form)'; |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - return '<input type="button" onclick="' . $this->remote_function($options) . '" name="' . $name . '" value ="' . $value . '">'; |
|
| 163 | + return '<input type="button" onclick="'.$this->remote_function($options).'" name="'.$name.'" value ="'.$value.'">'; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
@@ -203,8 +203,8 @@ discard block |
||
| 203 | 203 | $callbacks = []; |
| 204 | 204 | foreach ($options as $callback => $code) { |
| 205 | 205 | if (in_array($callback, $this->CALLBACKS)) { |
| 206 | - $name = 'on' . ucfirst($callback); |
|
| 207 | - $callbacks[$name] = 'function(request){' . $code . '}'; |
|
| 206 | + $name = 'on'.ucfirst($callback); |
|
| 207 | + $callbacks[$name] = 'function(request){'.$code.'}'; |
|
| 208 | 208 | } |
| 209 | 209 | } |
| 210 | 210 | |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | public function _build_observer($klass, $name, $options = null) |
| 221 | 221 | { |
| 222 | 222 | if (isset($options['with']) && false === strpos($options['with'], '=')) { |
| 223 | - $options['with'] = '\'' . $options['with'] . '=\' + value'; |
|
| 223 | + $options['with'] = '\''.$options['with'].'=\' + value'; |
|
| 224 | 224 | } elseif (isset($options['with']) && isset($options['update'])) { |
| 225 | 225 | $options['with'] = 'value'; |
| 226 | 226 | } |
@@ -228,10 +228,10 @@ discard block |
||
| 228 | 228 | $callback = $options['function'] ?: $this->remote_function($options); |
| 229 | 229 | |
| 230 | 230 | $javascript = "new $klass('$name', "; |
| 231 | - $javascript .= isset($options['frequency']) ? $options['frequency'] . ', ' : ''; |
|
| 231 | + $javascript .= isset($options['frequency']) ? $options['frequency'].', ' : ''; |
|
| 232 | 232 | $javascript .= 'function (element,value) { '; |
| 233 | 233 | $javascript .= $callback; |
| 234 | - $javascript .= isset($options['on']) ? ', ' . $options['on'] : ''; |
|
| 234 | + $javascript .= isset($options['on']) ? ', '.$options['on'] : ''; |
|
| 235 | 235 | $javascript .= '})'; |
| 236 | 236 | |
| 237 | 237 | return $javascript; |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | if (isset($options['position'])) { |
| 266 | - $js_options['insertion'] = 'Insertion.' . ucfirst($options['position']); |
|
| 266 | + $js_options['insertion'] = 'Insertion.'.ucfirst($options['position']); |
|
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | $js_options['evalScripts'] = isset($options['script']) ? $options['script'] : 'true'; |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | if (isset($options['form'])) { |
| 272 | 272 | $js_options['parameters'] = 'Form.serialize(this)'; |
| 273 | 273 | } elseif (isset($options['parameters'])) { |
| 274 | - $js_options['parameters'] = 'Form.serialize(\'' . $options['submit'] . '\')'; |
|
| 274 | + $js_options['parameters'] = 'Form.serialize(\''.$options['submit'].'\')'; |
|
| 275 | 275 | } elseif (isset($options['with'])) { |
| 276 | 276 | $js_options['parameters'] = $options['with']; |
| 277 | 277 | } |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | */ |
| 299 | 299 | public function ID($id, $extend = null) |
| 300 | 300 | { |
| 301 | - return "$('$id')" . (!empty($extend)) ? '.' . $extend . '()' : ''; |
|
| 301 | + return "$('$id')".(!empty($extend)) ? '.'.$extend.'()' : ''; |
|
| 302 | 302 | } |
| 303 | 303 | |
| 304 | 304 | /** |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | */ |
| 358 | 358 | public function delay($seconds = 1, $script = '') |
| 359 | 359 | { |
| 360 | - return "setTimeout( function() { $script } , " . ($seconds * 1000) . ' )'; |
|
| 360 | + return "setTimeout( function() { $script } , ".($seconds * 1000).' )'; |
|
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | /** |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | { |
| 380 | 380 | $args = array_merge([$id], (is_array($options_for_render) ? $options_for_render : [$options_for_render])); |
| 381 | 381 | |
| 382 | - return $this->call('new Insertion.' . ucfirst($position), $args); |
|
| 382 | + return $this->call('new Insertion.'.ucfirst($position), $args); |
|
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | /** |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | */ |
| 444 | 444 | public function select($pattern, $extend = null) |
| 445 | 445 | { |
| 446 | - return "$$('$pattern')" . (!empty($extend)) ? '.' . $extend : ''; |
|
| 446 | + return "$$('$pattern')".(!empty($extend)) ? '.'.$extend : ''; |
|
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | /** |
@@ -8,8 +8,8 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | function smartobject_addto_show($options) |
| 10 | 10 | { |
| 11 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'; |
|
| 12 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartaddto.php'; |
|
| 11 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'; |
|
| 12 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartaddto.php'; |
|
| 13 | 13 | $smartaddto = new XoopsModules\Smartobject\SmartAddTo($options[0]); |
| 14 | 14 | $block = $smartaddto->renderForBlock(); |
| 15 | 15 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | function smartobject_addto_edit($options) |
| 24 | 24 | { |
| 25 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 25 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 26 | 26 | |
| 27 | 27 | $form = ''; |
| 28 | 28 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $layout_select->addOption(1, _MB_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION1); |
| 32 | 32 | $layout_select->addOption(2, _MB_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION2); |
| 33 | 33 | $layout_select->addOption(3, _MB_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION3); |
| 34 | - $form .= $layout_select->getCaption() . ' ' . $layout_select->render() . '<br>'; |
|
| 34 | + $form .= $layout_select->getCaption().' '.$layout_select->render().'<br>'; |
|
| 35 | 35 | |
| 36 | 36 | return $form; |
| 37 | 37 | } |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | // defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
| 12 | 12 | |
| 13 | -require_once __DIR__ . '/preloads/autoloader.php'; |
|
| 13 | +require_once __DIR__.'/preloads/autoloader.php'; |
|
| 14 | 14 | |
| 15 | 15 | $modversion['version'] = '1.12'; |
| 16 | 16 | $modversion['module_status'] = 'RC 2'; |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | //$modversion['status'] = "Final"; |
| 34 | 34 | $modversion['modicons16'] = 'assets/images/icons/16'; |
| 35 | 35 | $modversion['modicons32'] = 'assets/images/icons/32'; |
| 36 | -$modversion['release_file'] = XOOPS_URL . '/modules/' . $modversion['dirname'] . '/docs/changelog.txt'; |
|
| 36 | +$modversion['release_file'] = XOOPS_URL.'/modules/'.$modversion['dirname'].'/docs/changelog.txt'; |
|
| 37 | 37 | $modversion['module_website_url'] = 'www.xoops.org'; |
| 38 | 38 | $modversion['module_website_name'] = 'XOOPS'; |
| 39 | 39 | $modversion['min_php'] = '5.5'; |
@@ -66,12 +66,12 @@ discard block |
||
| 66 | 66 | // ----- BUG: not read other language file ----- |
| 67 | 67 | //include_once(XOOPS_ROOT_PATH.'/modules/smartobject/language/english/common.php'); |
| 68 | 68 | global $xoopsConfig; |
| 69 | -$common_file = XOOPS_ROOT_PATH . '/modules/smartobject/language/' . $xoopsConfig['language'] . '/common.php'; |
|
| 69 | +$common_file = XOOPS_ROOT_PATH.'/modules/smartobject/language/'.$xoopsConfig['language'].'/common.php'; |
|
| 70 | 70 | if (file_exists($common_file)) { |
| 71 | 71 | $flag_common = true; |
| 72 | 72 | require_once $common_file; |
| 73 | 73 | } else { |
| 74 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/language/english/common.php'; |
|
| 74 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/language/english/common.php'; |
|
| 75 | 75 | } |
| 76 | 76 | // ----- |
| 77 | 77 | |
@@ -15,9 +15,9 @@ discard block |
||
| 15 | 15 | use XoopsModules\Smartobject\SmartObjectController; |
| 16 | 16 | use XoopsModules\Smartobject\SmartObjectTable; |
| 17 | 17 | |
| 18 | -require_once __DIR__ . '/admin_header.php'; |
|
| 19 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 20 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectlink.php'; |
|
| 18 | +require_once __DIR__.'/admin_header.php'; |
|
| 19 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 20 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectlink.php'; |
|
| 21 | 21 | $adminObject = \Xmf\Module\Admin::getInstance(); |
| 22 | 22 | |
| 23 | 23 | $smartobjectLinkHandler = xoops_getModuleHandler('link'); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | switch ($op) { |
| 35 | 35 | |
| 36 | 36 | case 'del': |
| 37 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 37 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 38 | 38 | $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectLinkHandler); |
| 39 | 39 | $controller->handleObjectDeletion(_AM_SOBJECT_SENT_LINK_DELETE_CONFIRM); |
| 40 | 40 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | $linkObj = $smartobjectLinkHandler->get($linkid); |
| 46 | 46 | |
| 47 | 47 | if ($linkObj->isNew()) { |
| 48 | - redirect_header(SMARTOBJECT_URL . 'admin/link.php', 3, _AM_SOBJECT_LINK_NOT_FOUND); |
|
| 48 | + redirect_header(SMARTOBJECT_URL.'admin/link.php', 3, _AM_SOBJECT_LINK_NOT_FOUND); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | smart_xoops_cp_header(); |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | |
| 55 | 55 | smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINK_DISPLAY, _AM_SOBJECT_SENT_LINK_DISPLAY_INFO); |
| 56 | 56 | |
| 57 | - require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
| 57 | + require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
| 58 | 58 | |
| 59 | 59 | // --- |
| 60 | 60 | // 2012-01-01 PHP 5.3: Assigning the return value of new by reference is now deprecated. |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | smart_collapsableBar('sentlinks', _AM_SOBJECT_SENT_LINKS, _AM_SOBJECT_SENT_LINKS_INFO); |
| 83 | 83 | |
| 84 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 84 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 85 | 85 | $objectTable = new XoopsModules\Smartobject\SmartObjectTable($smartobjectLinkHandler, null, ['delete']); |
| 86 | 86 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('date')); |
| 87 | 87 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn(_AM_SOBJECT_SENT_LINKS_FROM, $align = 'left', $width = false, 'getFromInfo')); |
@@ -104,4 +104,4 @@ discard block |
||
| 104 | 104 | |
| 105 | 105 | //smart_modFooter(); |
| 106 | 106 | //xoops_cp_footer(); |
| 107 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 107 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -8,8 +8,8 @@ discard block |
||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | use XoopsModules\Wfdownloads; |
| 11 | -require_once __DIR__ . '/admin_header.php'; |
|
| 12 | -require_once SMARTCONTENT_ROOT_PATH . 'class/dbupdater.php'; |
|
| 11 | +require_once __DIR__.'/admin_header.php'; |
|
| 12 | +require_once SMARTCONTENT_ROOT_PATH.'class/dbupdater.php'; |
|
| 13 | 13 | |
| 14 | 14 | smartcontent_xoops_cp_header(); |
| 15 | 15 | |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | $ret = []; |
| 209 | 209 | global $xoopsDB; |
| 210 | 210 | $catHandler = xoops_getModuleHandler('category', 'wfdownloads'); |
| 211 | - $result = $xoopsDB->query('SHOW COLUMNS FROM ' . $catHandler->table); |
|
| 211 | + $result = $xoopsDB->query('SHOW COLUMNS FROM '.$catHandler->table); |
|
| 212 | 212 | while (false !== ($existing_field = $xoopsDB->fetchArray($result))) { |
| 213 | 213 | $fields[$existing_field['field']] = $existing_field['type']; |
| 214 | 214 | } |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | //$xoopsDB->query("ALTER TABLE ".$table." ADD ".$field." ".$type); |
| 268 | 268 | //echo $field."(".$type.") <FONT COLOR='##22DD51'>Added</FONT><br>"; |
| 269 | 269 | } elseif ($existing_fields[$field] != $type) { |
| 270 | - $table->addAlteredField($field, $field . ' ' . $type); |
|
| 270 | + $table->addAlteredField($field, $field.' '.$type); |
|
| 271 | 271 | // check $fields[$field]['type'] for things like "int(10) unsigned" |
| 272 | 272 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$field." ".$type); |
| 273 | 273 | //echo $field." <FONT COLOR='#FF6600'>Changed to</FONT> ".$type."<br>"; |
@@ -288,17 +288,17 @@ discard block |
||
| 288 | 288 | function get_table_info($table, $default_fields) |
| 289 | 289 | { |
| 290 | 290 | global $xoopsDB; |
| 291 | - $result = $xoopsDB->query('SHOW COLUMNS FROM ' . $table); |
|
| 291 | + $result = $xoopsDB->query('SHOW COLUMNS FROM '.$table); |
|
| 292 | 292 | while (false !== ($existing_field = $xoopsDB->fetchArray($result))) { |
| 293 | 293 | $fields[$existing_field['Field']] = $existing_field['Type']; |
| 294 | 294 | if ('YES' !== $existing_field['Null']) { |
| 295 | 295 | $fields[$existing_field['Field']] .= ' NOT NULL'; |
| 296 | 296 | } |
| 297 | 297 | if ($existing_field['Extra']) { |
| 298 | - $fields[$existing_field['Field']] .= ' ' . $existing_field['Extra']; |
|
| 298 | + $fields[$existing_field['Field']] .= ' '.$existing_field['Extra']; |
|
| 299 | 299 | } |
| 300 | 300 | if ($default_fields[$existing_field['Field']]['Default']) { |
| 301 | - $fields[$existing_field['Field']] .= " default '" . $existing_field['Default'] . "'"; |
|
| 301 | + $fields[$existing_field['Field']] .= " default '".$existing_field['Default']."'"; |
|
| 302 | 302 | } |
| 303 | 303 | } |
| 304 | 304 | |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | if (in_array($field, array_keys($renamed_fields))) { |
| 321 | 321 | $new_field_name = $renamed_fields[$field]; |
| 322 | 322 | $new_field_type = $new_fields[$new_field_name]['Type']; |
| 323 | - $table->addAltered($field, $new_field_name . ' ' . $new_field_type); |
|
| 323 | + $table->addAltered($field, $new_field_name.' '.$new_field_type); |
|
| 324 | 324 | //$xoopsDB->query("ALTER TABLE ".$table." CHANGE ".$field." ".$new_field_name." ".$new_field_type); |
| 325 | 325 | //echo $field." Renamed to ".$new_field_name."<br>"; |
| 326 | 326 | $fields[$new_field_name] = $new_field_type; |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | //return $fields; |
| 330 | 330 | } |
| 331 | 331 | |
| 332 | -$op = isset($_REQUEST['op']) ? (int)$_REQUEST['op'] : 0; |
|
| 332 | +$op = isset($_REQUEST['op']) ? (int) $_REQUEST['op'] : 0; |
|
| 333 | 333 | switch ($op) { |
| 334 | 334 | case 1: |
| 335 | 335 | // Make sure that nohtml is properly changed to dohtml |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | |
| 349 | 349 | default: |
| 350 | 350 | //ask what to do |
| 351 | - include XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 351 | + include XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 352 | 352 | $form = new \XoopsThemeForm('Upgrade WF-Downloads', 'form', $_SERVER['REQUEST_URI']); |
| 353 | 353 | |
| 354 | 354 | //Is MyDownloads installed? |
@@ -373,4 +373,4 @@ discard block |
||
| 373 | 373 | } |
| 374 | 374 | //wfdownloads_modFooter(); |
| 375 | 375 | //xoops_cp_footer(); |
| 376 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 376 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -19,11 +19,11 @@ |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Smartobject; |
| 21 | 21 | |
| 22 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
| 22 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
| 23 | 23 | //require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php'); |
| 24 | 24 | |
| 25 | 25 | // require_once __DIR__ . '/../class/Utility.php'; |
| 26 | -require_once __DIR__ . '/../include/common.php'; |
|
| 26 | +require_once __DIR__.'/../include/common.php'; |
|
| 27 | 27 | |
| 28 | 28 | $moduleDirName = basename(dirname(__DIR__)); |
| 29 | 29 | $helper = Smartobject\Helper::getInstance(); |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | -require_once __DIR__ . '/admin_header.php'; |
|
| 59 | -require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 60 | -require_once SMARTOBJECT_ROOT_PATH . 'class/rating.php'; |
|
| 58 | +require_once __DIR__.'/admin_header.php'; |
|
| 59 | +require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 60 | +require_once SMARTOBJECT_ROOT_PATH.'class/rating.php'; |
|
| 61 | 61 | $smartobjectRatingHandler = xoops_getModuleHandler('rating'); |
| 62 | 62 | $indexAdmin = \Xmf\Module\Admin::getInstance(); |
| 63 | 63 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | case 'mod': |
| 75 | 75 | case 'changedField': |
| 76 | 76 | |
| 77 | - $ratingid = isset($_GET['ratingid']) ? (int)$_GET['ratingid'] : 0; |
|
| 77 | + $ratingid = isset($_GET['ratingid']) ? (int) $_GET['ratingid'] : 0; |
|
| 78 | 78 | |
| 79 | 79 | smart_xoops_cp_header(); |
| 80 | 80 | $adminObject->displayNavigation(basename(__FILE__)); |
@@ -83,14 +83,14 @@ discard block |
||
| 83 | 83 | break; |
| 84 | 84 | |
| 85 | 85 | case 'addrating': |
| 86 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 86 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 87 | 87 | $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectRatingHandler); |
| 88 | - $controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL . 'admin/rating.php'); |
|
| 88 | + $controller->storeFromDefaultForm(_AM_SOBJECT_RATINGS_CREATED, _AM_SOBJECT_RATINGS_MODIFIED, SMARTOBJECT_URL.'admin/rating.php'); |
|
| 89 | 89 | |
| 90 | 90 | break; |
| 91 | 91 | |
| 92 | 92 | case 'del': |
| 93 | - require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 93 | + require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php'; |
|
| 94 | 94 | $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectRatingHandler); |
| 95 | 95 | $controller->handleObjectDeletion(); |
| 96 | 96 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | smart_collapsableBar('createdratings', _AM_SOBJECT_RATINGS, _AM_SOBJECT_RATINGS_DSC); |
| 107 | 107 | |
| 108 | - require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php'; |
|
| 108 | + require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php'; |
|
| 109 | 109 | $objectTable = new XoopsModules\Smartobject\SmartObjectTable($smartobjectRatingHandler); |
| 110 | 110 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('name', 'left')); |
| 111 | 111 | $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('dirname', 'left')); |
@@ -153,4 +153,4 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | //smart_modFooter(); |
| 155 | 155 | //xoops_cp_footer(); |
| 156 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 156 | +require_once __DIR__.'/admin_footer.php'; |
|