r97759 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97758‎ | r97759 | r97760 >
Date:19:54, 21 September 2011
Author:reedy
Status:ok (Comments)
Tags:
Comment:
Bug 31064 - Link to user page on successful login points to IP address
Modified paths:
  • /branches/wmf/1.18wmf1/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/includes/SkinTemplate.php
@@ -157,6 +157,8 @@
158158
159159 wfProfileIn( __METHOD__ . '-stuff' );
160160 $this->thispage = $this->getTitle()->getPrefixedDBkey();
 161+ $this->userpage = $wgUser->getUserPage()->getPrefixedText();
 162+
161163 $query = array();
162164 if ( !$wgRequest->wasPosted() ) {
163165 $query = $wgRequest->getValues();
@@ -171,6 +173,7 @@
172174 $this->username = $wgUser->getName();
173175
174176 if ( $wgUser->isLoggedIn() || $this->showIPinHeader() ) {
 177+
175178 $this->userpageUrlDetails = self::makeUrlDetails( $this->userpage );
176179 } else {
177180 # This won't be used in the standard skins, but we define it to preserve the interface
@@ -641,6 +644,7 @@
642645 ),
643646 'active' => false
644647 );
 648+//var_dump( $personal_urls ); die();
645649 } else {
646650 global $wgUser;
647651 $useCombinedLoginLink = $this->useCombinedLoginLink();

Follow-up revisions

RevisionCommit summaryAuthorDate
r97760Remove debugging statement from r97759reedy19:55, 21 September 2011
r97761REL1_18 Merge r97759, r97760reedy19:59, 21 September 2011

Comments

#Comment by Aaron Schulz (talk | contribs)   19:54, 21 September 2011
+//var_dump( $personal_urls ); die();

Status & tagging log