Index: trunk/extensions/CentralNotice/special/SpecialCentralNotice.php |
— | — | @@ -1233,7 +1233,7 @@ |
1234 | 1234 | /** |
1235 | 1235 | * Assign a banner to a campaign at a certain weight |
1236 | 1236 | */ |
1237 | | - function addTemplateTo( $noticeName, $templateName, $weight ) { |
| 1237 | + public function addTemplateTo( $noticeName, $templateName, $weight ) { |
1238 | 1238 | $dbr = wfGetDB( DB_SLAVE ); |
1239 | 1239 | |
1240 | 1240 | $eNoticeName = htmlspecialchars ( $noticeName ); |
— | — | @@ -1350,7 +1350,7 @@ |
1351 | 1351 | /** |
1352 | 1352 | * Remove a banner assignment from a campaign |
1353 | 1353 | */ |
1354 | | - function removeTemplateFor( $noticeName, $templateName ) { |
| 1354 | + public function removeTemplateFor( $noticeName, $templateName ) { |
1355 | 1355 | $dbw = wfGetDB( DB_MASTER ); |
1356 | 1356 | $dbw->begin(); |
1357 | 1357 | $noticeId = CentralNotice::getNoticeId( $noticeName ); |
Index: trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php |
— | — | @@ -746,7 +746,7 @@ |
747 | 747 | return null; |
748 | 748 | } |
749 | 749 | |
750 | | - private function removeTemplate ( $name ) { |
| 750 | + public function removeTemplate ( $name ) { |
751 | 751 | $id = SpecialNoticeTemplate::getTemplateId( $name ); |
752 | 752 | $dbr = wfGetDB( DB_SLAVE ); |
753 | 753 | $res = $dbr->select( 'cn_assignments', 'asn_id', array( 'tmp_id' => $id ), __METHOD__ ); |