From: Roan Kattouw Date: Sun, 5 Dec 2010 10:30:04 +0000 (+0000) Subject: Revert r77760, broken, and do what it intended correctly with strtok(). X-Git-Tag: 1.31.0-rc.0~33554 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=eeada87491139c4d7d3d2b421e9ac4a60bd40d1b;p=lhc%2Fweb%2Fwiklou.git Revert r77760, broken, and do what it intended correctly with strtok(). --- 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 {