http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73236
Revision: 73236
Author: kaldari
Date: 2010-09-17 18:27:30 +0000 (Fri, 17 Sep 2010)
Log Message:
-----------
we don't need to instantiate CentralNoticeDB, all of it's functions are static
Modified Paths:
--------------
trunk/extensions/CentralNotice/SpecialBannerController.php
Modified: trunk/extensions/CentralNotice/SpecialBannerController.php
===================================================================
--- trunk/extensions/CentralNotice/SpecialBannerController.php 2010-09-17
18:25:12 UTC (rev 73235)
+++ trunk/extensions/CentralNotice/SpecialBannerController.php 2010-09-17
18:27:30 UTC (rev 73236)
@@ -4,7 +4,6 @@
* Generates Javascript file which controls banner selection on the client side
*/
class SpecialBannerController extends UnlistedSpecialPage {
- public $centralNoticeDB;
protected $sharedMaxAge = 7200; // Cache for 2 hours on the server side
protected $maxAge = 7200; // Cache for 2 hours on the client side
protected $contentType = 'text/javascript';
@@ -12,7 +11,6 @@
function __construct() {
// Register special page
parent::__construct( "BannerController" );
- $this->centralNoticeDB = new CentralNoticeDB();
}
function execute( $par ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs