From eeada87491139c4d7d3d2b421e9ac4a60bd40d1b Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sun, 5 Dec 2010 10:30:04 +0000 Subject: [PATCH] Revert r77760, broken, and do what it intended correctly with strtok(). --- includes/SkinTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 1c68ec6c5b..7f20f66a2a 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -980,7 +980,7 @@ class SkinTemplate extends Skin { } if( $this->mTitle->getNamespace() == NS_USER || $this->mTitle->getNamespace() == NS_USER_TALK ) { - $rootUser = explode( '/', $this->mTitle->getText(), 1 ); + $rootUser = strtok( $this->mTitle->getText(), '/' ); $id = User::idFromName( $rootUser ); $ip = User::isIP( $rootUser ); } else { -- 2.20.1