From: Tim Starling Date: Tue, 11 Aug 2009 06:02:06 +0000 (+0000) Subject: (bug 20170) Make QuickTemplate::execute() abstract, instead of sending a dorky PHP... X-Git-Tag: 1.31.0-rc.0~40364 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0694c5aa9067f43a9e456855895b235101f6da6d;p=lhc%2Fweb%2Fwiklou.git (bug 20170) Make QuickTemplate::execute() abstract, instead of sending a dorky PHP 4-style error message to the user. --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 0a4fb4e675..c91c580abc 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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