From 8d13af81b7b87f95399dec327a18ba2006e08a85 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Fri, 23 May 2003 04:26:51 +0000 Subject: [PATCH] Deletion feature improved: If an article with less than 500 characters is to be deleted, at most the first 150 characters are automatically suggested as a deletion reason. This should automate the frequent practice of pasting the text of nonsense articles into the deletion reason. If an article with a history is to be deleted, a warning is inserted, linking to the article history (so as to avoid accidentally deleting a vandalized page with a valid history). If a blanked article with a history is to be deleted, and the next earlier revision contains less than 500 characters, at most the first 150 characters are automatically suggested as a deletion reason. Nonsense pages are often blanked, just checking the current revision for nonsense is not good enough. New texts in Language.php for this feature: - excontent, exblank, exbeforeblank, historywarning --- includes/Article.php | 67 ++++++++++++++++++++++++++++++++++++++---- languages/Language.php | 4 +++ 2 files changed, 66 insertions(+), 5 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 4896d84905..0a29aa7f08 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -540,7 +540,6 @@ class Article { $wgOut->addHTML( "
-