r42933 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42932‎ | r42933 | r42934 >
Date:19:23, 31 October 2008
Author:brion
Status:old
Tags:
Comment:
Cleanup to r42790 -- fix default noticeloader/noticetext paths
Modified paths:
  • /branches/CentralNotice-SpecialPage-Integration/CentralNotice.php (modified) (history)

Diff [purge]

Index: branches/CentralNotice-SpecialPage-Integration/CentralNotice.php
@@ -4,7 +4,7 @@
55 /// This guy gets loaded from every page on every wiki, and is heavily cached.
66 /// Its contents are small, and just load up another cached JS page, but this
77 /// allows us to update everything with a single purge. Nice, eh?
8 -$wgNoticeLoader = $wgArticlePath . '/Special:NoticeLoader';
 8+$wgNoticeLoader = str_replace( '$1', 'Special:NoticeLoader', $wgArticlePath );
99
1010 /// Override these per-wiki to pass on via the loader to the text system
1111 /// for localization by language and project.
@@ -51,7 +51,7 @@
5252 /// URL prefix to the raw-text loader special.
5353 /// Project/language and timestamp epoch keys get appended to this
5454 /// via the loader stub.
55 -$wgNoticeText = $wgArticlePath . '/Special:NoticeText';
 55+$wgNoticeText = str_replace( '$1', 'Special:NoticeText', $wgArticlePath );
5656
5757 /// If true, notice only displays if 'sitenotice=yes' is in the query string
5858 $wgNoticeTestMode = false;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r42790Added configuration variables for table names. Fixed paths.tparscal23:45, 29 October 2008

Status & tagging log