(bug 20170) Make QuickTemplate::execute() abstract, instead of sending a dorky PHP...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 11 Aug 2009 06:02:06 +0000 (06:02 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 11 Aug 2009 06:02:06 +0000 (06:02 +0000)
includes/SkinTemplate.php

index 0a4fb4e..c91c580 100644 (file)
@@ -1041,7 +1041,7 @@ class SkinTemplate extends Skin {
  * compatible with what we use of PHPTAL 0.7.
  * @ingroup Skins
  */
-class QuickTemplate {
+abstract class QuickTemplate {
        /**
         * Constructor
         */
@@ -1078,9 +1078,7 @@ class QuickTemplate {
         * Main function, used by classes that subclass QuickTemplate
         * to show the actual HTML output
         */
-       public function execute() {
-               echo 'Override this function.';
-       }
+       abstract public function execute();
 
        /**
         * @private