Changeset 25018 for trunk/admin/include/functions.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r24987 r25018 541 541 and is_dir($path.'/'.$node)) 542 542 { 543 array_push($dirs, $path.'/'.$node);543 $dirs[] = $path.'/'.$node; 544 544 if ($recursive) 545 545 { … … 748 748 list($representative) = pwg_db_fetch_row(pwg_query($query)); 749 749 750 array_push( 751 $datas, 752 array( 753 'id' => $category_id, 754 'representative_picture_id' => $representative, 755 ) 750 $datas[] = array( 751 'id' => $category_id, 752 'representative_picture_id' => $representative, 756 753 ); 757 754 } … … 863 860 if (basename($path) == 'thumbnail') 864 861 { 865 array_push($fs['thumbnails'], $path.'/'.$node);862 $fs['thumbnails'][] = $path.'/'.$node; 866 863 } 867 864 else if (basename($path) == 'pwg_representative') 868 865 { 869 array_push($fs['representatives'], $path.'/'.$node);866 $fs['representatives'][] = $path.'/'.$node; 870 867 } 871 868 else 872 869 { 873 array_push($fs['elements'], $path.'/'.$node);870 $fs['elements'][] = $path.'/'.$node; 874 871 } 875 872 } … … 877 874 else if (isset($conf['flip_file_ext'][$extension])) 878 875 { 879 array_push($fs['elements'], $path.'/'.$node);876 $fs['elements'][] = $path.'/'.$node; 880 877 } 881 878 } 882 879 else if (is_dir($path.'/'.$node) and $node != 'pwg_high' and $recursive) 883 880 { 884 array_push($subdirs, $node);881 $subdirs[] = $node; 885 882 } 886 883 } … … 996 993 while ($uppercat) 997 994 { 998 array_push($upper_list, $uppercat);995 $upper_list[] = $uppercat; 999 996 $uppercat = $cat_map[$uppercat]['id_uppercat']; 1000 997 } … … 1003 1000 if ($new_uppercats != $cat['uppercats']) 1004 1001 { 1005 array_push( 1006 $datas, 1007 array( 1008 'id' => $id, 1009 'uppercats' => $new_uppercats 1010 ) 1002 $datas[] = array( 1003 'id' => $id, 1004 'uppercats' => $new_uppercats 1011 1005 ); 1012 1006 } … … 1096 1090 if (preg_match('/^'.$category['uppercats'].'(,|$)/', $new_parent_uppercats)) 1097 1091 { 1098 array_push( 1099 $page['errors'], 1100 l10n('You cannot move an album in its own sub album') 1101 ); 1092 $page['errors'][] = l10n('You cannot move an album in its own sub album'); 1102 1093 return; 1103 1094 } … … 1178 1169 } 1179 1170 1180 array_push( 1181 $page['infos'], 1182 l10n_dec( 1183 '%d album moved', '%d albums moved', 1184 count($categories) 1185 ) 1171 $page['infos'][] = l10n_dec( 1172 '%d album moved', '%d albums moved', 1173 count($categories) 1186 1174 ); 1187 1175 } … … 1308 1296 foreach ($granted_grps as $granted_grp) 1309 1297 { 1310 array_push( 1311 $inserts, 1312 array( 1313 'group_id' => $granted_grp, 1314 'cat_id' => $inserted_id 1315 ) 1298 $inserts[] = array( 1299 'group_id' => $granted_grp, 1300 'cat_id' => $inserted_id 1316 1301 ); 1317 1302 } … … 1587 1572 $rank = ++$current_rank_of[$category_id]; 1588 1573 1589 array_push( 1590 $inserts, 1591 array( 1592 'image_id' => $image_id, 1593 'category_id' => $category_id, 1594 'rank' => $rank, 1595 ) 1574 $inserts[] = array( 1575 'image_id' => $image_id, 1576 'category_id' => $category_id, 1577 'rank' => $rank, 1596 1578 ); 1597 1579 } … … 2316 2298 while ($row = pwg_db_fetch_assoc($result)) 2317 2299 { 2318 array_push($granteds[$row['cat_id']], $row['user_id']);2300 $granteds[ $row['cat_id'] ][] = $row['user_id']; 2319 2301 } 2320 2302 … … 2327 2309 foreach ($grant_to_users as $user_id) 2328 2310 { 2329 array_push( 2330 $inserts, 2331 array( 2332 'user_id' => $user_id, 2333 'cat_id' => $cat_id 2334 ) 2311 $inserts[] = array( 2312 'user_id' => $user_id, 2313 'cat_id' => $cat_id 2335 2314 ); 2336 2315 } … … 2514 2493 and $file != '.svn') 2515 2494 { 2516 array_push($sub_dirs, $file);2495 $sub_dirs[] = $file; 2517 2496 } 2518 2497 }
Note: See TracChangeset
for help on using the changeset viewer.