From 953618714cb41a89b1f1078325f94579fc154b8a Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 13 May 2013 19:09:19 +0200 Subject: FunnyQuestion: Fix API --- extensions/FunnyQuestion/FunnyQuestion.body.php | 4 ++-- extensions/FunnyQuestion/FunnyQuestion.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions') diff --git a/extensions/FunnyQuestion/FunnyQuestion.body.php b/extensions/FunnyQuestion/FunnyQuestion.body.php index ae0a25ab..449914fd 100644 --- a/extensions/FunnyQuestion/FunnyQuestion.body.php +++ b/extensions/FunnyQuestion/FunnyQuestion.body.php @@ -97,7 +97,7 @@ class FunnyQuestion { return true; } - public static function checkFunnyQuestionOnEditPage($editpage, $text, $section, $error) { + public static function checkFunnyQuestionOnEditPage($editor, $text, $section, &$error, $summary) { global $wgUser; if (!$wgUser->isLoggedIn() && !self::checkFunnyQuestion()) { @@ -116,7 +116,7 @@ class FunnyQuestion { return true; } - public static function checkFunnyQuestionOnAbortNewAccount($user, $message) { + public static function checkFunnyQuestionOnAbortNewAccount($user, &$message) { if (!self::checkFunnyQuestion()) { $message = wfMsg('wrong-answer'); return false; diff --git a/extensions/FunnyQuestion/FunnyQuestion.php b/extensions/FunnyQuestion/FunnyQuestion.php index 8db54617..578955a9 100644 --- a/extensions/FunnyQuestion/FunnyQuestion.php +++ b/extensions/FunnyQuestion/FunnyQuestion.php @@ -2,7 +2,7 @@ $wgExtensionCredits['other'][] = array( 'name' => 'FunnyQuestion', - 'version' => '2.2', + 'version' => '2.3', 'description' => 'Challenge-response authentication', 'author' => 'Pierre Schmitz', 'url' => 'https://pierre-schmitz.com/' -- cgit v1.2.3-54-g00ecf From 0c8174863626a51580525e79af3d4c3d0f93f3b9 Mon Sep 17 00:00:00 2001 From: Dario Giovannetti Date: Wed, 29 May 2013 23:07:47 +0800 Subject: Enable Arabic (ar) interlanguage links Signed-off-by: Pierre Schmitz --- extensions/ArchInterWiki.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'extensions') diff --git a/extensions/ArchInterWiki.sql b/extensions/ArchInterWiki.sql index d4f81d1c..e5b0f0b1 100644 --- a/extensions/ArchInterWiki.sql +++ b/extensions/ArchInterWiki.sql @@ -16,11 +16,10 @@ * should do the job instead. */ -DELETE FROM interwiki WHERE iw_prefix='pt-br'; - REPLACE INTO interwiki (iw_prefix, iw_url, iw_local, iw_trans) VALUES + ('ar', 'https://wiki.archlinux.org/index.php/$1_(%D8%A7%D9%84%D8%B9%D8%B1%D8%A8%D9%8A%D8%A9)', 1, 0), ('bg', 'https://wiki.archlinux.org/index.php/$1_(%D0%91%D1%8A%D0%BB%D0%B3%D0%B0%D1%80%D1%81%D0%BA%D0%B8)', 1, 0), ('cs', 'https://wiki.archlinux.org/index.php/$1_(%C4%8Cesky)', 1, 0), ('da', 'https://wiki.archlinux.org/index.php/$1_(Dansk)', 1, 0), -- cgit v1.2.3-54-g00ecf From cacc939b34e315b85e2d72997811eb6677996cc1 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 8 Jul 2013 10:57:43 +0200 Subject: FluxBBAuthPlugin: Do not limit password length --- extensions/FluxBBAuthPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/FluxBBAuthPlugin.php b/extensions/FluxBBAuthPlugin.php index b919f31d..16b26c41 100644 --- a/extensions/FluxBBAuthPlugin.php +++ b/extensions/FluxBBAuthPlugin.php @@ -17,7 +17,7 @@ class FluxBBAuthPlugin extends AuthPlugin { public static function isValidPassword($password) { $length = strlen($password); - return ($length >= 4 && $length <= 25); + return $length >= 4; } private function getUserData($username) { -- cgit v1.2.3-54-g00ecf