From: Siebrand Mazeland Date: Wed, 26 Sep 2012 04:12:45 +0000 (-0700) Subject: Use standard function name for constructor. X-Git-Tag: 1.31.0-rc.0~22253^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=04986cf60f05f6689c55bd04d57ee6d619e72cf4;p=lhc%2Fweb%2Fwiklou.git Use standard function name for constructor. Also remove a redundant constant check. Change-Id: I55d929e6bc8f8a851bedf5eaa476601af4458e6e --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index bda43957dc..dfd7dca306 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1225,7 +1225,7 @@ abstract class QuickTemplate { /** * Constructor */ - public function QuickTemplate() { + function __construct() { $this->data = array(); $this->translator = new MediaWiki_I18N(); } diff --git a/includes/templates/Userlogin.php b/includes/templates/Userlogin.php index a3f6a38bc6..182992a1fa 100644 --- a/includes/templates/Userlogin.php +++ b/includes/templates/Userlogin.php @@ -25,8 +25,6 @@ * @defgroup Templates Templates */ -if( !defined( 'MEDIAWIKI' ) ) die( -1 ); - /** * HTML template for Special:Userlogin form * @ingroup Templates