Index: branches/CentralNotice-SpecialPage-Integration/CentralNotice.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | /// This guy gets loaded from every page on every wiki, and is heavily cached. |
6 | 6 | /// Its contents are small, and just load up another cached JS page, but this |
7 | 7 | /// allows us to update everything with a single purge. Nice, eh? |
8 | | -$wgNoticeLoader = $IP . '/Special:NoticeLoader'; |
| 8 | +$wgNoticeLoader = $wgArticlePath . '/Special:NoticeLoader'; |
9 | 9 | |
10 | 10 | /// Override these per-wiki to pass on via the loader to the text system |
11 | 11 | /// for localization by language and project. |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | /// URL prefix to the raw-text loader special. |
29 | 29 | /// Project/language and timestamp epoch keys get appended to this |
30 | 30 | /// via the loader stub. |
31 | | -$wgNoticeText = $IP . '/Special:NoticeText'; |
| 31 | +$wgNoticeText = $wgArticlePath . '/Special:NoticeText'; |
32 | 32 | |
33 | 33 | /// If true, notice only displays if 'sitenotice=yes' is in the query string |
34 | 34 | $wgNoticeTestMode = false; |
— | — | @@ -83,6 +83,11 @@ |
84 | 84 | $wgSpecialPageGroups['NoticeTranslate'] = 'wiki'; // Wiki data and tools" |
85 | 85 | $wgSpecialPageGroups['NoticeTemplate'] = 'wiki'; // Wiki data and tools" |
86 | 86 | |
| 87 | + |
| 88 | +$egCentralNoticeTableNames['templates'] = 'central_notice_templates'; |
| 89 | +$egCentralNoticeTableNames['campaign'] = 'central_notice_campaign'; |
| 90 | +$egCentralNoticeTableNames['assignments'] = 'central_notice_template_assignments'; |
| 91 | + |
87 | 92 | function efCentralNoticeSetup() { |
88 | 93 | global $wgHooks, $wgNoticeInfrastructure; |
89 | 94 | global $wgAutoloadClasses, $wgSpecialPages; |