Changeset 25018 for trunk/admin/cat_list.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_list.php
r24985 r25018 79 79 } 80 80 81 array_push($datas, array('id' => $id, 'rank' => $current_rank));81 $datas[] = array('id' => $id, 'rank' => $current_rank); 82 82 } 83 83 $fields = array('primary' => array('id'), 'update' => array('rank')); … … 134 134 if (isset($output_create['error'])) 135 135 { 136 array_push($page['errors'], $output_create['error']);136 $page['errors'][] = $output_create['error']; 137 137 } 138 138 else 139 139 { 140 array_push($page['infos'], $output_create['info']);140 $page['infos'][] = $output_create['info']; 141 141 } 142 142 } … … 147 147 save_categories_order(array_keys($_POST['catOrd'])); 148 148 149 array_push( 150 $page['infos'], 151 l10n('Album manual order was saved') 152 ); 149 $page['infos'][] = l10n('Album manual order was saved'); 153 150 } 154 151 else if (isset($_POST['submitAutoOrder'])) … … 179 176 while ($row = pwg_db_fetch_assoc($result)) 180 177 { 181 array_push( 182 $categories, 183 array( 184 'id' => $row['id'], 185 'id_uppercat' => $row['id_uppercat'], 186 ) 178 $categories[] = array( 179 'id' => $row['id'], 180 'id_uppercat' => $row['id_uppercat'], 187 181 ); 188 array_push( 189 $names, 190 $row['name'] 191 ); 182 $names[] = $row['name']; 192 183 } 193 184 … … 200 191 save_categories_order($categories); 201 192 202 array_push( 203 $page['infos'], 204 l10n('Albums automatically sorted') 205 ); 193 $page['infos'][] = l10n('Albums automatically sorted'); 206 194 } 207 195
Note: See TracChangeset
for help on using the changeset viewer.