}
$id = $this->mTitle->getArticleID();
if ( 0 == $id ) {
- $wgOut->fatalEror( wfMsg( "badarticleerror" ) );
+ $wgOut->fatalError( wfMsg( "badarticleerror" ) );
return;
}
function isMovable( $index )
{
- if ( $index < NS_MAIN || $index == NS_IMAGE ) {
+ if ( $index < NS_MAIN || $index == NS_IMAGE || $index == NS_CATEGORY ) {
return false;
}
return true;
return $nav_urls;
}
- function getPageTitleActionText () {
- global $action;
- switch($action) {
- case 'edit':
- return wfMsg('edit');
- case 'history':
- return wfMsg('history_short');
- case 'protect':
- return wfMsg('unprotect');
- case 'unprotect':
- return wfMsg('unprotect');
- case 'delete':
- return wfMsg('delete');
- case 'watch':
- return wfMsg('watch');
- case 'unwatch':
- return wfMsg('unwatch');
- case 'submit':
- return wfMsg('preview');
- default:
- return '';
- }
- }
/*static*/ function makeSpecialUrl( $name, $urlaction='' ) {
$title = Title::makeTitle( NS_SPECIAL, $name );
$this->checkTitle(&$title, &$name);
if ( "" != $err ) {
$wgOut->setSubtitle( wfMsg( "formerror" ) );
- $wgOut->addHTML( "<p><font color='red' size='+1'>{$err}</font>\n" );
+ $wgOut->addHTML( "<p class='error'>{$err}</p>\n" );
}
$wgOut->addHTML( "
<form id=\"movepage\" method=\"post\" action=\"{$action}\">