Use MWNamespace method instead of binary arithmetic
[lhc/web/wiklou.git] / includes / Title.php
index 6cd8ee5..3b586c5 100644 (file)
@@ -3695,8 +3695,8 @@ class Title {
                }
 
                # Update watchlists
-               $oldnamespace = $this->getNamespace() & ~1;
-               $newnamespace = $nt->getNamespace() & ~1;
+               $oldnamespace = MWNamespace::getSubject( $this->getNamespace() );
+               $newnamespace = MWNamespace::getSubject( $nt->getNamespace() );
                $oldtitle = $this->getDBkey();
                $newtitle = $nt->getDBkey();