From bda2edfb2799e73eaab83b775eda8afbe8bcb15d Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Tue, 14 Sep 2010 13:28:12 +0200 Subject: FunnyQuestion: remove unneeded HTML-Code and methods. --- extensions/FunnyQuestion.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'extensions') diff --git a/extensions/FunnyQuestion.php b/extensions/FunnyQuestion.php index 8f6b5c08..62f196d6 100644 --- a/extensions/FunnyQuestion.php +++ b/extensions/FunnyQuestion.php @@ -102,19 +102,6 @@ public static function checkFunnyQuestionOnEditPage($editpage, $text, $section, return true; } - -public static function addFunnyQuestionToUserLoginForm($template) { - $template->set('header', self::getFunnyQuestion()); - return true; -} - -public static function checkFunnyQuestionOnAbortLogin($user, $password, $retval) { - # LoginForm::ABBORT is not yet supported by MediaWiki - $retval = LoginForm::ILLEGAL; - return self::checkFunnyQuestion(); -} - - public static function addFunnyQuestionToUserCreateForm($template) { $template->set('header', self::getFunnyQuestion()); return true; @@ -122,7 +109,7 @@ public static function addFunnyQuestionToUserCreateForm($template) { public static function checkFunnyQuestionOnAbortNewAccount($user, $message) { if (!self::checkFunnyQuestion()) { - $message = '
Your answer was wrong!

'; + $message = 'Your answer was wrong!'; return false; } else { return true; -- cgit v1.2.2