return false;
}
}
+
+ if( $action == 'move' && !$this->isMovable() ) {
+ wfProfileOut( $fname );
+ return false;
+ }
+
wfProfileOut( $fname );
return true;
}
return $this->userCan('move');
}
+ /**
+ * Would anybody with sufficient privileges be able to mvoe this page?
+ * Some pages just ain't movable.
+ *
+ * @return boolean
+ * @access public
+ */
+ function isMovable() {
+ return Namespace::isMovable( $this->getNamespace() );
+ }
+
/**
* Can $wgUser read this page?
* @return boolean