Changeset 26863
- Timestamp:
- Jan 18, 2014, 4:11:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/template.class.php
r26718 r26863 1160 1160 { 1161 1161 ksort($this->picture_buttons); 1162 $this->assign('PLUGIN_PICTURE_BUTTONS', 1163 array_reduce( 1164 $this->picture_buttons, 1165 create_function('$v,$w', 'return array_merge($v, $w);'), 1166 array() 1167 )); 1162 $buttons = array(); 1163 foreach ($this->picture_buttons as $k => $row) 1164 { 1165 $buttons = array_merge($buttons, $row); 1166 } 1167 $this->assign('PLUGIN_PICTURE_BUTTONS', $buttons); 1168 1169 // only for PHP 5.3 1170 // $this->assign('PLUGIN_PICTURE_BUTTONS', 1171 // array_reduce( 1172 // $this->picture_buttons, 1173 // create_function('$v,$w', 'return array_merge($v, $w);'), 1174 // array() 1175 // )); 1168 1176 } 1169 1177 } … … 1177 1185 { 1178 1186 ksort($this->index_buttons); 1179 $this->assign('PLUGIN_INDEX_BUTTONS', 1180 array_reduce( 1181 $this->index_buttons, 1182 create_function('$v,$w', 'return array_merge($v, $w);'), 1183 array() 1184 )); 1187 $buttons = array(); 1188 foreach ($this->index_buttons as $k => $row) 1189 { 1190 $buttons = array_merge($buttons, $row); 1191 } 1192 $this->assign('PLUGIN_INDEX_BUTTONS', $buttons); 1193 1194 // only for PHP 5.3 1195 // $this->assign('PLUGIN_INDEX_BUTTONS', 1196 // array_reduce( 1197 // $this->index_buttons, 1198 // create_function('$v,$w', 'return array_merge($v, $w);'), 1199 // array() 1200 // )); 1185 1201 } 1186 1202 }
Note: See TracChangeset
for help on using the changeset viewer.