summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-07-28 11:52:48 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-07-28 11:52:48 +0200
commit222b01f5169f1c7e69762e0e8904c24f78f71882 (patch)
tree8e932e12546bb991357ec48eb1638d1770be7a35 /extensions
parent00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff)
update to MediaWiki 1.16.0
Diffstat (limited to 'extensions')
-rw-r--r--extensions/FluxBBAuthPlugin.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/extensions/FluxBBAuthPlugin.php b/extensions/FluxBBAuthPlugin.php
index 0b1319eb..17bc2f24 100644
--- a/extensions/FluxBBAuthPlugin.php
+++ b/extensions/FluxBBAuthPlugin.php
@@ -4,7 +4,7 @@ $wgHooks['isValidPassword'][] = 'FluxBBAuthPlugin::isValidPassword';
$wgExtensionCredits['other'][] = array(
'name' => 'FluxBBAuthPlugin',
- 'version' => '1.0',
+ 'version' => '1.1',
'description' => 'Use FluxBB accounts in MediaWiki',
'author' => 'Pierre Schmitz',
'url' => 'https://users.archlinux.de/~pierre/'
@@ -58,7 +58,7 @@ public function authenticate( $username, $password ) {
return $authenticated;
}
-public function modifyUITemplate( &$template ) {
+public function modifyUITemplate( &$template, &$type ) {
$template->set( 'usedomain', false );
$template->set('link', 'Um Dich hier anzumelden, nutze Deine Konto-Daten aus dem <a href="https://bbs.archlinux.de/">archlinux.de-Forum</a>.');
}
@@ -79,6 +79,17 @@ public function autoCreate() {
return true;
}
+public function allowPropChange( $prop = '' ) {
+ if( $prop == 'realname' ) {
+ return false;
+ } elseif( $prop == 'emailaddress' ) {
+ return false;
+ } elseif( $prop == 'nickname' ) {
+ return false;
+ } else {
+ return true;
+ }
+}
public function allowPasswordChange() {
return false;
}