r77789 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77788‎ | r77789 | r77790 >
Date:10:30, 5 December 2010
Author:catrope
Status:ok
Tags:
Comment:
Revert r77760, broken, and do what it intended correctly with strtok().
Modified paths:
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -980,7 +980,7 @@
981981 }
982982
983983 if( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) {
984 - $rootUser = explode( '/', $this->mTitle->getText(), 1 );
 984+ $rootUser = strtok( $this->mTitle->getText(), '/' );
985985 $id = User::idFromName( $rootUser );
986986 $ip = User::isIP( $rootUser );
987987 } else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77760Style cleanup to r64922demon04:13, 5 December 2010

Status & tagging log