{
global $wgOut, $wgUser, $wgLang;
global $wpNewTitle, $wpOldTitle, $wpMovetalk, $target;
- global $wgDeferredUpdateList;
+ global $wgDeferredUpdateList, $wgMessageCache;
$fname = "MovePageForm::doSubmit";
$this->ot = Title::newFromText( $wpOldTitle );
( ! Namespace::isMovable( $nns ) ) ||
( "" == $this->ndt ) ||
( "" != $this->nt->getInterwiki() ) ||
- ( !$this->nt->userCanEdit() ) ) {
+ ( !$this->nt->userCanEdit() ) ||
+ ( $this->ons == NS_MEDIAWIKI && $wgMessageCache->isCacheable( $this->odt ) ) ) {
$this->showForm( wfMsg( "badarticleerror" ) );
return;
}