Add a Skins category to Special:Version.
[lhc/web/wiklou.git] / includes / SkinTemplate.php
index 1c68ec6..7f20f66 100644 (file)
@@ -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 {