From 5ba440822579e2b982b5ef47628328267d768678 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Wed, 4 May 2005 20:42:30 +0000 Subject: [PATCH] * Always use the date format specified in the users preferences * $wgRCSeconds removed (it's been deprecated for some time, old ghosts around) --- includes/ChangesList.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/ChangesList.php b/includes/ChangesList.php index f3dc13101d..baa731f62e 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -272,7 +272,7 @@ class ChangesList { function recentChangesLineOld( &$rc, $watched = false ) { - global $wgTitle, $wgLang, $wgContLang, $wgUser, $wgRCSeconds, $wgUseRCPatrol, + global $wgTitle, $wgLang, $wgContLang, $wgUser, $wgUseRCPatrol, $wgOnlySysopsCanPatrol, $wgSysopUserBans; $fname = 'Skin::recentChangesLineOld'; @@ -294,7 +294,7 @@ class ChangesList { ( !$wgOnlySysopsCanPatrol || $wgUser->isAllowed('patrol') ) && $rc_patrolled == 0; # Make date header if necessary - $date = $wgLang->date( $rc_timestamp, true); + $date = $wgLang->date( $rc_timestamp, true, true ); $s = ''; if ( $date != $this->lastdate ) { if ( '' != $this->lastdate ) { $s .= "\n"; } @@ -366,7 +366,7 @@ class ChangesList { wfProfileIn( "$fname-rest" ); # Timestamp - $s .= '; ' . $wgLang->time( $rc_timestamp, true, $wgRCSeconds ) . ' . . '; + $s .= '; ' . $wgLang->time( $rc_timestamp, true, true ) . ' . . '; # User link (or contributions for unregistered users) if ( 0 == $rc_user ) { @@ -419,7 +419,7 @@ class ChangesList { } function recentChangesLineNew( &$baseRC, $watched = false ) { - global $wgTitle, $wgLang, $wgContLang, $wgUser, $wgRCSeconds, + global $wgTitle, $wgLang, $wgContLang, $wgUser, $wgUseRCPatrol, $wgOnlySysopsCanPatrol, $wgSysopUserBans; static $message; @@ -472,7 +472,7 @@ class ChangesList { $clink = $this->skin->makeKnownLinkObj( $rc->getTitle(), '' ) ; } - $time = $wgContLang->time( $rc_timestamp, true, $wgRCSeconds ); + $time = $wgContLang->time( $rc_timestamp, true, true ); $rc->watched = $watched ; $rc->link = $clink ; $rc->timestamp = $time; @@ -555,4 +555,4 @@ class ChangesList { } } -?> \ No newline at end of file +?> -- 2.20.1