r98916 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98915‎ | r98916 | r98917 >
Date:21:00, 4 October 2011
Author:awjrichards
Status:ok
Tags:
Comment:
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/CentralNotice/CentralNotice.php
@@ -52,6 +52,11 @@
5353 // Example: '.wikipedia.org'
5454 $wgNoticeCookieDomain = '';
5555
 56+// When the cookie set in SpecialHideBanners.php should expire
 57+// This would typically be the end date for a fundraiser
 58+// NOTE: This must be in UNIX timestamp format, for example, '1325462400'
 59+$wgNoticeHideBannersExpiration = '';
 60+
5661 $wgExtensionFunctions[] = 'efCentralNoticeSetup';
5762
5863 $wgExtensionCredits['other'][] = array(
@@ -126,8 +131,9 @@
127132
128133 $wgAutoloadClasses['TemplatePager'] = $dir . 'TemplatePager.php';
129134 $wgAutoloadClasses['CentralNoticePager'] = $dir . 'CentralNoticePager.php';
130 - $wgAutoloadClasses['CentralNoticeLogPager'] = $dir . 'CentralNoticeLogPager.php';
 135+ $wgAutoloadClasses['CentralNoticeCampaignLogPager'] = $dir . 'CentralNoticeCampaignLogPager.php';
131136 $wgAutoloadClasses['CentralNoticeBannerLogPager'] = $dir . 'CentralNoticeBannerLogPager.php';
 137+ $wgAutoloadClasses['CentralNoticePageLogPager'] = $dir . 'CentralNoticePageLogPager.php';
132138 }
133139 }
134140
@@ -153,6 +159,8 @@
154160 $base . '/patches/patch-notice_projects.sql' );
155161 $wgExtNewTables[] = array( 'cn_notice_log',
156162 $base . '/patches/patch-notice_log.sql' );
 163+ $wgExtNewTables[] = array( 'cn_template_log',
 164+ $base . '/patches/patch-template_log.sql' );
157165 }
158166 } else {
159167 if ( $updater->getDB()->getType() == 'mysql' ) {
@@ -172,6 +180,8 @@
173181 $base . '/patches/patch-notice_projects.sql', true ) );
174182 $updater->addExtensionUpdate( array( 'addTable', 'cn_notice_log',
175183 $base . '/patches/patch-notice_log.sql', true ) );
 184+ $updater->addExtensionUpdate( array( 'addTable', 'cn_template_log',
 185+ $base . '/patches/patch-template_log.sql', true ) );
176186 }
177187 }
178188 return true;
Property changes on: branches/wmf/1.18wmf1/extensions/CentralNotice/CentralNotice.php
___________________________________________________________________
Modified: svn:mergeinfo
179189 Merged /trunk/extensions/CentralNotice/CentralNotice.php:r92701,95528-95914,98296

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92701very beginning of banner setting logging - mostly doesnt work currentlykaldari22:21, 20 July 2011
r95822adding banner content and banner message logging to CentralNoticekaldari00:06, 31 August 2011
r95914follow up to r95822, reverting accidental inclusion of non-existant filekaldari22:55, 31 August 2011
r98296allow people to set expiration date for Special:HideBannerskaldari01:05, 28 September 2011

Status & tagging log