From: Alexandre Emsenhuber Date: Sat, 8 May 2010 13:23:11 +0000 (+0000) Subject: * (bug 23429) Added new hook WatchlistEditorBuildRemoveLine X-Git-Tag: 1.31.0-rc.0~36920 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=7a14da0df5b67ddb693285aead925c7a225baae0;p=lhc%2Fweb%2Fwiklou.git * (bug 23429) Added new hook WatchlistEditorBuildRemoveLine * one indentation fix in WatchlistEditor.php --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b52a74d33f..675e81d3e9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -69,6 +69,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN is no title match in search and the user has no rights to create pages. * Added $wgJQueryVersion, $wgJQueryMinified and $wgJQueryOnEveryPage (true by default) to configure loading of jQuery by MediaWiki +* (bug 23429) Added new hook WatchlistEditorBuildRemoveLine === Bug fixes in 1.17 === * (bug 17560) Half-broken deletion moved image files to deletion archive diff --git a/docs/hooks.txt b/docs/hooks.txt index b1d9f2f801..2e080f7cb9 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1796,6 +1796,13 @@ $article: article object to be watched $user: user that watched $article: article object watched +'WatchlistEditorBuildRemoveLine': when building remove lines in + Special:Watchlist/edit +&$tools: array of extra links +$title: Title object +$redirect: whether the page is a redirect +$skin: Skin object + 'WikiExporter::dumpStableQuery': Get the SELECT query for "stable" revisions dumps One, and only one hook should set this, and return false. diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index e9e79ee1df..72b12c2d9d 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -431,10 +431,13 @@ class WatchlistEditor { array( 'known', 'noclasses' ) ); } + + wfRunHooks( 'WatchlistEditorBuildRemoveLine', array( &$tools, $title, $redirect, $skin ) ); + return "
  • " . Xml::check( 'titles[]', false, array( 'value' => $title->getPrefixedText() ) ) . $link . " (" . $wgLang->pipeList( $tools ) . ")" . "
  • \n"; - } + } /** * Show a form for editing the watchlist in "raw" mode