Changeset 25018 for trunk/admin/stats.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/stats.php
r19703 r25018 98 98 while ($row = pwg_db_fetch_assoc($result)) 99 99 { 100 array_push($output, $row);100 $output[] = $row; 101 101 } 102 102 … … 227 227 { 228 228 $row['nb_pages'] += $need_update[$key]; 229 array_push($updates, $row);229 $updates[] = $row; 230 230 unset($need_update[$key]); 231 231 } … … 237 237 $time_tokens = explode('-', $time_key); 238 238 239 array_push( 240 $inserts, 241 array( 242 'year' => $time_tokens[0], 243 'month' => @$time_tokens[1], 244 'day' => @$time_tokens[2], 245 'hour' => @$time_tokens[3], 246 'nb_pages' => $nb_pages, 247 ) 248 ); 239 $inserts[] = array( 240 'year' => $time_tokens[0], 241 'month' => @$time_tokens[1], 242 'day' => @$time_tokens[2], 243 'hour' => @$time_tokens[3], 244 'nb_pages' => $nb_pages, 245 ); 249 246 } 250 247 … … 324 321 $url = PHPWG_ROOT_PATH.'admin.php?page=stats'; 325 322 326 array_push( 327 $title_parts, 328 '<a href="'.$url.'">'.l10n('Overall').'</a>' 329 ); 323 $title_parts[] = '<a href="'.$url.'">'.l10n('Overall').'</a>'; 330 324 331 325 $period_label = l10n('Year'); … … 335 329 $url.= '&year='.$page['year']; 336 330 337 array_push( 338 $title_parts, 339 '<a href="'.$url.'">'.$page['year'].'</a>' 340 ); 331 $title_parts[] = '<a href="'.$url.'">'.$page['year'].'</a>'; 341 332 342 333 $period_label = l10n('Month'); … … 347 338 $url.= '&month='.$page['month']; 348 339 349 array_push( 350 $title_parts, 351 '<a href="'.$url.'">'.$lang['month'][$page['month']].'</a>' 352 ); 340 $title_parts[] = '<a href="'.$url.'">'.$lang['month'][$page['month']].'</a>'; 353 341 354 342 $period_label = l10n('Day'); … … 367 355 ); 368 356 369 array_push( 370 $title_parts, 371 '<a href="'.$url.'">'.$day_title.'</a>' 372 ); 357 $title_parts[] = '<a href="'.$url.'">'.$day_title.'</a>'; 373 358 374 359 $period_label = l10n('Hour');
Note: See TracChangeset
for help on using the changeset viewer.