Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -262,7 +262,7 @@ |
263 | 263 | $dbw->commit(); |
264 | 264 | } |
265 | 265 | |
266 | | - static public function printHeader() { |
| 266 | + public static function printHeader() { |
267 | 267 | global $wgOut, $wgTitle, $wgUser; |
268 | 268 | $sk = $wgUser->getSkin(); |
269 | 269 | |
— | — | @@ -1078,7 +1078,7 @@ |
1079 | 1079 | /** |
1080 | 1080 | * Lookup the ID for a campaign based on the campaign name |
1081 | 1081 | */ |
1082 | | - public function getNoticeId( $noticeName ) { |
| 1082 | + public static function getNoticeId( $noticeName ) { |
1083 | 1083 | $dbr = wfGetDB( DB_SLAVE ); |
1084 | 1084 | $eNoticeName = htmlspecialchars( $noticeName ); |
1085 | 1085 | $res = $dbr->select( 'cn_notices', 'not_id', array( 'not_name' => $eNoticeName ) ); |
— | — | @@ -1100,7 +1100,7 @@ |
1101 | 1101 | return $languages; |
1102 | 1102 | } |
1103 | 1103 | |
1104 | | - function getNoticeProjectName ( $noticeName ) { |
| 1104 | + function getNoticeProjectName( $noticeName ) { |
1105 | 1105 | $dbr = wfGetDB( DB_SLAVE ); |
1106 | 1106 | $eNoticeName = htmlspecialchars( $noticeName ); |
1107 | 1107 | $res = $dbr->select( 'cn_notices', 'not_project', array( 'not_name' => $eNoticeName ) ); |
— | — | @@ -1125,7 +1125,7 @@ |
1126 | 1126 | $dbw->commit(); |
1127 | 1127 | } |
1128 | 1128 | |
1129 | | - function updateNoticeDate ( $noticeName, $start, $end ) { |
| 1129 | + function updateNoticeDate( $noticeName, $start, $end ) { |
1130 | 1130 | global $wgOut; |
1131 | 1131 | |
1132 | 1132 | $dbr = wfGetDB( DB_SLAVE ); |
— | — | @@ -1158,7 +1158,7 @@ |
1159 | 1159 | $dbw->commit(); |
1160 | 1160 | } |
1161 | 1161 | |
1162 | | - function updateLock ( $noticeName, $isLocked ) { |
| 1162 | + function updateLock( $noticeName, $isLocked ) { |
1163 | 1163 | global $wgOut; |
1164 | 1164 | |
1165 | 1165 | $dbr = wfGetDB( DB_SLAVE ); |
— | — | @@ -1303,7 +1303,7 @@ |
1304 | 1304 | $dbw->commit(); |
1305 | 1305 | } |
1306 | 1306 | |
1307 | | - function dropDownList ( $text, $values ) { |
| 1307 | + function dropDownList( $text, $values ) { |
1308 | 1308 | $dropDown = "* {$text}\n"; |
1309 | 1309 | foreach ( $values as $value ) { |
1310 | 1310 | $dropDown .= "**{$value}\n"; |
— | — | @@ -1311,7 +1311,7 @@ |
1312 | 1312 | return $dropDown; |
1313 | 1313 | } |
1314 | 1314 | |
1315 | | - function addZero ( $text ) { |
| 1315 | + function addZero( $text ) { |
1316 | 1316 | // Prepend a 0 for text needing it |
1317 | 1317 | if ( strlen( $text ) == 1 ) { |
1318 | 1318 | $text = "0{$text}"; |