Fix typo in 'log-action-filter-suppress-block'
[lhc/web/wiklou.git] / includes / skins / Skin.php
index d70a6b9..fce68bb 100644 (file)
@@ -661,7 +661,7 @@ abstract class Skin extends ContextSource {
 
                if ( $out->isArticle() && MWNamespace::hasSubpages( $out->getTitle()->getNamespace() ) ) {
                        $ptext = $this->getTitle()->getPrefixedText();
-                       if ( preg_match( '/\//', $ptext ) ) {
+                       if ( strpos( $ptext, '/' ) !== false ) {
                                $links = explode( '/', $ptext );
                                array_pop( $links );
                                $c = 0;