Last modified: 2014-08-07 16:53:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47286, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45286 - Link user targets in logentry messages
Link user targets in logentry messages
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
EducationProgram (Other open bugs)
master
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-22 17:29 UTC by Sage Ross
Modified: 2014-08-07 16:53 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sage Ross 2013-02-22 17:29:57 UTC
Currently, the Education Program student log has entries for when a student gets removed from a class by another user. They look like this:

17:01, 22 February 2013 Ajungle (talk | contribs) removed Auserabuser as student from course Intercultural Communication

But the removed user is not linked. It would make it slightly easier to investigate removal instances if the removed usernames were linked.
Comment 1 Jeroen De Dauw 2013-02-23 17:18:36 UTC
As far as I remember, this is not facilitated by the MW logging system
Comment 2 Sam Reed (reedy) 2013-02-26 07:32:44 UTC
(In reply to comment #1)
> As far as I remember, this is not facilitated by the MW logging system

Surely this is pretty much done the same way for block entries etc..? Using getTarget()?

 07:23, 26 February 2013 Bongwarrior (Talk | contribs | block) blocked 24.69.202.62 (Talk) with an expiry time of 2 days (anonymous users only, account creation disabled) (Vandalism) (unblock | change block)

'blocklogentry'                   => 'blocked [[$1]] with an expiry time of $2 $3',

	public function getTarget() {
		$namespace = $this->row->log_namespace;
		$page = $this->row->log_title;
		$title = Title::makeTitle( $namespace, $page );
		return $title;
	}

	public function getTarget() {
		$namespace = $this->row->rc_namespace;
		$page = $this->row->rc_title;
		$title = Title::makeTitle( $namespace, $page );
		return $title;
	}
Comment 3 Sam Reed (reedy) 2013-02-26 07:39:06 UTC
			case 'user-link':
				$this->setShowUserToolLinks( false );

				$user = User::newFromName( $value );
				$value = Message::rawParam( $this->makeUserLink( $user ) );

				$this->setShowUserToolLinks( $saveLinkFlood );
				break;
Comment 4 Jeroen De Dauw 2013-02-26 17:14:51 UTC
Reedy, thanks for the pointer to getTarget.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links