From d35ccbc6f1872a27df32596c62a29238101945e5 Mon Sep 17 00:00:00 2001 From: Ivan Lanin Date: Fri, 20 Apr 2007 04:06:06 +0000 Subject: [PATCH] * Fix object variable used for displaying "not-patrolled" CSS class on list * Indonesian (id) localization updates --- RELEASE-NOTES | 1 + includes/QueryPage.php | 4 ++-- languages/messages/MessagesId.php | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5323f5a0d0..7d5ebc5950 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -326,6 +326,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Special:Random and Special:Randomredirect now try harder to send the user to a random page, and will give an error message if none really can be found instead of sending the user to the main page like they used to +* Fix object variable used for displaying "not-patrolled" CSS class on list == Maintenance == diff --git a/includes/QueryPage.php b/includes/QueryPage.php index ce240a7783..27c6927bdd 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -393,7 +393,7 @@ class QueryPage { for( $i = 0; $i < $num && $row = $dbr->fetchObject( $res ); $i++ ) { $line = $this->formatResult( $skin, $row ); if( $line ) { - $attr = ( isset( $obj->usepatrol ) && $obj->usepatrol && $obj->patrolled == 0 ) + $attr = ( isset( $row->usepatrol ) && $row->usepatrol && $row->patrolled == 0 ) ? ' class="not-patrolled"' : ''; $html[] = $this->listoutput @@ -407,7 +407,7 @@ class QueryPage { $row = null; $line = $this->formatResult( $skin, $row ); if( $line ) { - $attr = ( isset( $obj->usepatrol ) && $obj->usepatrol && $obj->patrolled == 0 ) + $attr = ( isset( $row->usepatrol ) && $row->usepatrol && $row->patrolled == 0 ) ? ' class="not-patrolled"' : ''; $html[] = $this->listoutput diff --git a/languages/messages/MessagesId.php b/languages/messages/MessagesId.php index 894049fc18..5a7d79610a 100644 --- a/languages/messages/MessagesId.php +++ b/languages/messages/MessagesId.php @@ -1293,8 +1293,7 @@ Ada sejumlah '''\$3''' penampilan halaman, dan sejumlah '''\$4''' penyuntingan s # Watchlist 'watchlist' => 'Daftar pantauan', -'my-watchlist' => 'Daftar pantauan', -'mywatchlist' => 'Pantauan saya', +'my-watchlist' => 'Pantauan saya', 'watchlistfor' => "(untuk '''$1''')", 'nowatchlist' => 'Daftar pantauan Anda kosong.', 'watchlistanontext' => 'Silakan $1 untuk melihat atau menyunting daftar pantauan Anda.', -- 2.20.1