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)


 * Thanks a lot!!!--LeLorrain 23:44, 19 June 2010 (UTC)

2009-12-03 Francois
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 !

2010-03-01 nhoffman
I had to reverse Francois' change to make this extension work, because the form was POSTing to
 * /kb/somepage&action=delete_permanently

which was causing the extension to delete the page titled somepage&action=delete_permanently.

I did this by changing the ampersand ("&") on line 116: $action = $wgArticle->getTitle->escapeLocalUrl."&action=delete_permanently"; to a question mark ("?"): $action = $wgArticle->getTitle->escapeLocalUrl."?action=delete_permanently";

I'm guessing that Francois needed the ampersand because he's using URLs in this format:
 * http://example.com/wiki/index.php?title=Somepage

rather than this format:
 * http://example.com/wiki/Somepage

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)

Commit access for MediaWiki Subversion repository, and updating extensions for 1.19 - workshop tomorrow
Would you like to put your MediaWiki extension(s) in Subversion to make it easier to track changes?

Commit access requests

Also, MediaWiki.org's WikiProject Extensions is presenting their first MediaWiki Workshops for developers (volunteer and staff). Preparing extensions for MediaWiki 1.19 will be held tomorrow, on 13 January, 2012 at 19:00 UTC in IRC (#wikimedia-dev).

This IRC workshop will be an opportunity to find out about changes in MediaWiki 1.19 that may require revisions to extensions or skins. Also an opportunity to ask MediaWiki developers questions regarding extension development.

Everyone is invited to attend. Developers interested in serving as "extensions" or "MediaWiki 1.19" experts are encouraged to signup as participants at: Project:WikiProject Extensions/MediaWiki Workshops

If there's continued interest / demand, MediaWiki Workshops will typically last one hour, and happen no more than twice a month to present trainings, hold discussions and collaborate on community or WikiProject Extensions projects. Facilitators host the session to introduce any presenters, determine the order of questions, and generally helps to keep things going. Time of day will vary in order to offer people in different parts of the world the opportunity to participate. Future topics will likely include MW.org documentation, ResourceLoader orientation and workshops similar to our inaugural chat to prepare for each MediaWiki release.

More information: Project:WikiProject Extensions/MediaWiki Workshops

MediaWiki.org's WikiProject SysAdmins will also likely host similar MediaWiki Workshops to help third-party wiki system administrators. Stay tuned for more information, and chime in at: Project:WikiProject SysAdmins/Ideas

Best, Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator 21:29, 12 January 2012 (UTC)