r13949 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r13948‎ | r13949 | r13950 >
Date:23:30, 29 April 2006
Author:robchurch
Status:old
Tags:
Comment:
(bug 5516) Show appropriate "return to" link on blocked page
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -634,7 +634,7 @@
635635 * Produce a "user is blocked" page
636636 */
637637 function blockedPage() {
638 - global $wgUser, $wgContLang;
 638+ global $wgUser, $wgContLang, $wgTitle;
639639
640640 $this->setPageTitle( wfMsg( 'blockedtitle' ) );
641641 $this->setRobotpolicy( 'noindex,nofollow' );
@@ -652,7 +652,10 @@
653653 $link = '[[' . $wgContLang->getNsText( NS_USER ) . ":{$name}|{$name}]]";
654654
655655 $this->addWikiText( wfMsg( 'blockedtext', $link, $reason, $ip, $name ) );
656 - $this->returnToMain( false );
 656+
 657+ # Don't auto-return to special pages
 658+ $return = $wgTitle->getNamespace() > -1 ? $wgTitle->getPrefixedText() : NULL;
 659+ $this->returnToMain( false, $return );
657660 }
658661
659662 /**
Index: trunk/phase3/includes/DefaultSettings.php
@@ -863,6 +863,8 @@
864864 $wgGroupPermissions['sysop']['reupload-shared'] = true;
865865 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
866866 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
 867+$wgGroupPermissions['sysop']['rangeblock'] = true;
 868+$wgGroupPermissions['sysop']['userblock'] = true;
867869
868870 // Permission to change users' group assignments
869871 $wgGroupPermissions['bureaucrat']['userrights'] = true;
Index: trunk/phase3/RELEASE-NOTES
@@ -150,6 +150,7 @@
151151 * "lang=xx" option for parser test cases to set content language
152152 * (bug 5764) Friulian translation updated
153153 * (bug 5757) Fix premature cutoff in LanguageConverter with extra end markers
 154+* (bug 5516) Show appropriate "return to" link on blocked page
154155
155156
156157 == Compatibility ==

Status & tagging log