From: Jack Phoenix Date: Fri, 25 Jul 2008 18:11:43 +0000 (+0000) Subject: new hook, ConfirmEmailComplete X-Git-Tag: 1.31.0-rc.0~46369 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=21c114764307b2b66844c734e71d9a870146c9ae;p=lhc%2Fweb%2Fwiklou.git new hook, ConfirmEmailComplete --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6d46e707a5..a390a1c6a4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -30,6 +30,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 8068) New __INDEX__ and __NOINDEX__ magic words allow user control of search engine indexing on a per-article basis. +* Added ConfirmEmailComplete hook to allow extensions to perform actions + depending on if the user's email is confirmed or not === Bug fixes in 1.14 === diff --git a/docs/hooks.txt b/docs/hooks.txt index 286ed7e2a4..9b9980aa48 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -513,6 +513,9 @@ $catpage: CategoryPage instance $unpatrolled: Whether or not we are showing unpatrolled changes. $watched: Whether or not the change is watched by the user. +'ConfirmEmailComplete': Called after a user's email has been confirmed successfully +&$user: user (object) whose email is being confirmed + 'ContribsPager::getQueryInfo': Before the contributions query is about to run &$pager: Pager object for contributions &queryInfo: The query for the contribs Pager diff --git a/includes/specials/SpecialConfirmemail.php b/includes/specials/SpecialConfirmemail.php index 9075fb9573..cf20b77e25 100644 --- a/includes/specials/SpecialConfirmemail.php +++ b/includes/specials/SpecialConfirmemail.php @@ -92,6 +92,7 @@ class EmailConfirmation extends UnlistedSpecialPage { $title = SpecialPage::getTitleFor( 'Userlogin' ); $wgOut->returnToMain( true, $title ); } + wfRunHooks( 'ConfirmEmailComplete', array( &$user ) ); } else { $wgOut->addWikiMsg( 'confirmemail_invalid' ); }