http://www.mediawiki.org/wiki/Special:Code/MediaWiki/71829
Revision: 71829
Author: kaldari
Date: 2010-08-28 00:24:54 +0000 (Sat, 28 Aug 2010)
Log Message:
-----------
forgot to update calls to updatePreferred in r71828
Modified Paths:
--------------
trunk/extensions/CentralNotice/SpecialCentralNotice.php
Modified: trunk/extensions/CentralNotice/SpecialCentralNotice.php
===================================================================
--- trunk/extensions/CentralNotice/SpecialCentralNotice.php 2010-08-28
00:15:01 UTC (rev 71828)
+++ trunk/extensions/CentralNotice/SpecialCentralNotice.php 2010-08-28
00:24:54 UTC (rev 71829)
@@ -114,7 +114,7 @@
// Set since this is a single display
if ( $method == 'listNoticeDetail' ) {
$notice = $wgRequest->getVal (
'notice' );
-
$this->centralNoticeDB->updatePreferred( $notice, '1' );
+ $this->updatePreferred(
$notice, '1' );
}
else {
// Build list of campaigns to
unset
@@ -122,10 +122,10 @@
// Set flag accordingly
foreach ( $preferredNotices as
$notice ) {
-
$this->centralNoticeDB->updatePreferred( $notice, '1' );
+ $this->updatePreferred(
$notice, '1' );
}
foreach ( $unsetNotices as
$notice ) {
-
$this->centralNoticeDB->updatePreferred( $notice, '0' );
+ $this->updatePreferred(
$notice, '0' );
}
}
}
@@ -177,11 +177,11 @@
if ( !isset( $preferredNotices ) && $method !==
'addNotice' ) {
if ( $method == 'listNoticeDetail' ) {
$notice = $wgRequest->getVal (
'notice' );
-
$this->centralNoticeDB->updatePreferred( $notice, 0 );
+ $this->updatePreferred(
$notice, 0 );
} else {
$allNotices =
$this->getNoticesName();
foreach ( $allNotices as
$notice ) {
-
$this->centralNoticeDB->updatePreferred( $notice, '0' );
+ $this->updatePreferred(
$notice, '0' );
}
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs