From: Raimond Spekking Date: Mon, 26 Mar 2007 17:46:13 +0000 (+0000) Subject: * (bug 4756) Add user tool links for self created accounts at special:log X-Git-Tag: 1.31.0-rc.0~53600 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=bb9dd4e9e5fac345360a580c06cbae77300ad586;p=lhc%2Fweb%2Fwiklou.git * (bug 4756) Add user tool links for self created accounts at special:log instead of sometimes broken block links from newuserlog extension Furthermore the block link from newuserlog was shown to users w/o block allowance too. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 15ea122725..02e2137b99 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -284,7 +284,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN for more information * (bug 9299) Allow user timezones to work with Postgres * (bug 9411) Fix for shared image descriptions using query-string titles - +* (bug 4756) Add user tool links for self created accounts at special:log + instead of sometimes broken block links from newuserlog extension == Maintenance == * New script maintenance/language/checkExtensioni18n.php used to check i18n diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 185eb90a11..9c98d8c8b0 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -365,6 +365,12 @@ class LogViewer { $revert = '(' . $skin->makeKnownLink( $title->getPrefixedDBkey() , wfMsg( 'protect_change' ), 'action=unprotect' ) . ')'; + // show user tool links for self created users + } elseif ( $s->log_action == 'create2' ) { + $revert = $this->skin->userToolLinksRedContribs( $s->log_user, $s->log_title ); + // do not show $comment for self created accounts. It includes wrong user tool links: + // 'blockip' for users w/o block allowance and broken links for very long usernames (bug 4756) + $comment = ''; } $action = LogPage::actionText( $s->log_type, $s->log_action, $title, $this->skin, $paramArray, true, true );