User talk:LeLorrain

DeletePagesPermanently in safe mode
Should this extension work even in safe mode? An error message is displayed refering to line 33 in DeletePagesPermanently when trying to use it. /Henrik Götesson

Hey there, i suppose you are Ludovic Mouton, bechttp://www.mediawiki.org/w/index.php?title=User_talk:LeLorrain&action=editause you were the user who posted the DeletePagePermanently extension.

I'm currently working on an improvement of you extension to make it possible to define, in which namespaces pages can be deleted. I'm also working to make it delete images completely. if you don't mind i will post the new version (as 1.1 BETA) instead of your's. please tell me, if you agree.

--W.stoettinger 23:34, 24 December 2008 (UTC)


 * I’m Ludovic MOUTON and I’m interesting in your improvements. I think this extension can be improved: Let MediaWiki archive the article that is going to be deleted and then delete the archive in the archive table? --LeLorrain 20:15, 25 December 2008 (UTC)


 * I already uploaded the new version of DeletePagePermanently. I don't let the MediaWiki archive the article, I delete it all myself and I think there is no more trace of the article in any table of the database, not even in the archive. Also image deletion works now --W.stoettinger 22:43, 26 December 2008 (UTC)


 * Thanks a lot. Great work! I have added the french translation. --LeLorrain 12:37, 27 December 2008 (UTC)


 * I added Polish translation on the extension site. Please, update appropriate files. --Joystick.pl 00:15, 12 March 2009 (UTC)

Bug or what ?
Hello I've try this extension to my version 1.15.1 of wikimedia and i get a bug. The page doesn't delete. I think maybe there is a mistake on line 115 : $action = $wgArticle->getTitle->escapeLocalUrl."?action=delete_permanently"; It should be : $action = $wgArticle->getTitle->escapeLocalUrl."&action=delete_permanently"; I've juste change the ? for a & and now it works ! I hope that could help ! -Francois / 3 december 2009

Category count update
Hi, I noticed that the DeletePagePermanently extension does not update category count. Here is a patch generated by git, I started from version 2.1.1 found on the extension page.

$ cat 0001--fix-category-count-on-deletion.patch [...] DeletePagePermanently.php |   9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/DeletePagePermanently.php b/DeletePagePermanently.php index 884e719..d161cf7 100644 --- a/DeletePagePermanently.php +++ b/DeletePagePermanently.php @@ -177,6 +177,15 @@ class DeletePagePermanently # Delete page Links $dbw->delete( 'pagelinks', array ( 'pl_from' => $id ), __METHOD__ ); +       # update categories count before removing category links +       $cat = array; +       $res = $dbw->select( 'categorylinks', 'cl_to', array( 'cl_from' => $id ), __METHOD__ ); +       foreach( $res as $row ) { +           $cat[]= $row->cl_to; +       } +        $article = new Article( $title ); +       $article->updateCategoryCounts(array, $cat); +        # delete category links $dbw->delete( 'categorylinks', array( 'cl_from' => $id ), __METHOD__);

Now the count should be correct after a page deletion. You can mail me at sberder@gmail.com for informations.


 * The problem is corrected. Thanks.--LeLorrain 00:05, 29 December 2009 (UTC)