Index: trunk/phase3/includes/QueryPage.php |
— | — | @@ -438,7 +438,9 @@ |
439 | 439 | */ |
440 | 440 | function execute( $par ) { |
441 | 441 | global $wgQueryCacheLimit; |
442 | | - if ( !$this->userCanExecute( $this->getUser() ) ) { |
| 442 | + |
| 443 | + $user = $this->getUser(); |
| 444 | + if ( !$this->userCanExecute( $user ) ) { |
443 | 445 | $this->displayRestrictionError(); |
444 | 446 | return; |
445 | 447 | } |
— | — | @@ -475,9 +477,9 @@ |
476 | 478 | $maxResults = $lang->formatNum( $wgQueryCacheLimit ); |
477 | 479 | |
478 | 480 | if ( $ts ) { |
479 | | - $updated = $lang->timeanddate( $ts, true, true ); |
480 | | - $updateddate = $lang->date( $ts, true, true ); |
481 | | - $updatedtime = $lang->time( $ts, true, true ); |
| 481 | + $updated = $lang->userTimeAndDate( $ts, $user ); |
| 482 | + $updateddate = $lang->userDate( $ts, $user ); |
| 483 | + $updatedtime = $lang->userTime( $ts, $user ); |
482 | 484 | $out->addMeta( 'Data-Cache-Time', $ts ); |
483 | 485 | $out->addInlineScript( "var dataCacheTime = '$ts';" ); |
484 | 486 | $out->addWikiMsg( 'perfcachedts', $updated, $updateddate, $updatedtime, $maxResults ); |