// If the page has a history, insert a warning
if ( $hasHistory && !$confirm ) {
- global $wgLang;
-
$skin = $wgUser->getSkin();
$revisions = $this->estimateRevisionCount();
//FIXME: lego
);
if ( $bigHistory ) {
- global $wgDeleteRevisionsLimit;
-
$wgOut->wrapWikiMsg( "<div class='error'>\n$1\n</div>\n",
array( 'delete-warning-toobig', $wgLang->formatNum( $wgDeleteRevisionsLimit ) ) );
}
* Perform a deletion and output success or failure messages
*/
public function doDelete( $reason, $suppress = false ) {
- global $wgOut;
+ global $wgOut, $wgUser;
$id = $this->mTitle->getArticleID( GAID_FOR_UPDATE );
* @return string An appropriate autosummary, or an empty string.
*/
public static function getAutosummary( $oldtext, $newtext, $flags ) {
+ global $wgContLang;
+
# Decide what kind of autosummary is needed.
# Redirect autosummaries
# New page autosummaries
if ( $flags & EDIT_NEW && strlen( $newtext ) ) {
# If they're making a new article, give its text, truncated, in the summary.
- global $wgContLang;
$truncatedtext = $wgContLang->truncate(
str_replace( "\n", ' ', $newtext ),
return wfMsgForContent( 'autosumm-blank' );
} elseif ( strlen( $oldtext ) > 10 * strlen( $newtext ) && strlen( $newtext ) < 500 ) {
# Removing more than 90% of the article
- global $wgContLang;
$truncatedtext = $wgContLang->truncate(
$newtext,