r25691 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25690‎ | r25691 | r25692 >
Date:16:42, 9 September 2007
Author:evan
Status:old
Tags:
Comment:
Hide the "hideopenid" toggle if it won't do anything.
Modified paths:
  • /trunk/extensions/OpenID/OpenID.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenID/OpenID.php
@@ -249,7 +249,13 @@
250250 }
251251
252252 function OpenIDUserToggles(&$extraToggles) {
253 - $extraToggles[] = 'hideopenid';
 253+ global $wgOpenIDShowUrlOnUserPage;
 254+
 255+ if ($wgOpenIDShowUrlOnUserPage == 'user') {
 256+ $extraToggles[] = 'hideopenid';
 257+ }
 258+
 259+ return true;
254260 }
255261
256262 function OpenIDLoginStyle() {

Status & tagging log