Use standard function name for constructor.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Wed, 26 Sep 2012 04:12:45 +0000 (21:12 -0700)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Wed, 26 Sep 2012 04:12:45 +0000 (21:12 -0700)
Also remove a redundant constant check.

Change-Id: I55d929e6bc8f8a851bedf5eaa476601af4458e6e

includes/SkinTemplate.php
includes/templates/Userlogin.php

index bda4395..dfd7dca 100644 (file)
@@ -1225,7 +1225,7 @@ abstract class QuickTemplate {
        /**
         * Constructor
         */
-       public function QuickTemplate() {
+       function __construct() {
                $this->data = array();
                $this->translator = new MediaWiki_I18N();
        }
index a3f6a38..182992a 100644 (file)
@@ -25,8 +25,6 @@
  * @defgroup Templates Templates
  */
 
-if( !defined( 'MEDIAWIKI' ) ) die( -1 );
-
 /**
  * HTML template for Special:Userlogin form
  * @ingroup Templates