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 = $wgArticlePath . '/Special:NoticeLoader'; |
| 8 | +$wgNoticeLoader = str_replace( '$1', 'Special:NoticeLoader', $wgArticlePath ); |
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. |
— | — | @@ -51,7 +51,7 @@ |
52 | 52 | /// URL prefix to the raw-text loader special. |
53 | 53 | /// Project/language and timestamp epoch keys get appended to this |
54 | 54 | /// via the loader stub. |
55 | | -$wgNoticeText = $wgArticlePath . '/Special:NoticeText'; |
| 55 | +$wgNoticeText = str_replace( '$1', 'Special:NoticeText', $wgArticlePath ); |
56 | 56 | |
57 | 57 | /// If true, notice only displays if 'sitenotice=yes' is in the query string |
58 | 58 | $wgNoticeTestMode = false; |