isBlacklisted( $title, $action ); if( is_string( $blacklisted ) ) { $result = array( 'titleblacklist-forbidden-edit', htmlspecialchars( $blacklisted ), $title->getFullText() ); return false; } return $result = true; } public static function abortMove( $old, $nt, $user, &$err ) { global $wgTitleBlacklist; $blacklisted = $wgTitleBlacklist->isBlacklisted( $nt, 'move' ); if( is_string( $blacklisted ) ) { $err = wfMsgWikiHtml( "titleblacklist-forbidden-move", htmlspecialchars( $blacklisted ), $nt->getFullText(), $old->getFullText() ); return false; } return true; } public static function verifyUpload( $fname, $fpath, &$err ) { global $wgTitleBlacklist, $wgUser; $blacklisted = $wgTitleBlacklist->isBlacklisted( $fname, 'upload' ); if( is_string( $blacklisted ) ) { $err = wfMsgWikiHtml( "titleblacklist-forbidden-upload", htmlspecialchars( $blacklisted ), $fname ); return false; } return true; } }