From 04986cf60f05f6689c55bd04d57ee6d619e72cf4 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 25 Sep 2012 21:12:45 -0700 Subject: [PATCH] Use standard function name for constructor. Also remove a redundant constant check. Change-Id: I55d929e6bc8f8a851bedf5eaa476601af4458e6e --- includes/SkinTemplate.php | 2 +- includes/templates/Userlogin.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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 -- 2.20.1