https://www.mediawiki.org/wiki/Special:Code/MediaWiki/108283
Revision: 108283
Author: mah
Date: 2012-01-06 21:25:09 +0000 (Fri, 06 Jan 2012)
Log Message:
-----------
minor w/s + move $title instantiation above Enotif
Modified Paths:
--------------
trunk/phase3/includes/RecentChange.php
Modified: trunk/phase3/includes/RecentChange.php
===================================================================
--- trunk/phase3/includes/RecentChange.php 2012-01-06 20:54:24 UTC (rev
108282)
+++ trunk/phase3/includes/RecentChange.php 2012-01-06 21:25:09 UTC (rev
108283)
@@ -158,7 +158,7 @@
/**
* Writes the data in this object to the database
- * @param $noudp bool
+ * @param $noudp bool
*/
public function save( $noudp = false ) {
global $wgLocalInterwiki, $wgPutIPinRC;
@@ -214,10 +214,11 @@
$editor = ($wgUser->getName() ==
$this->mAttribs['rc_user_text']) ?
$wgUser : User::newFromName(
$this->mAttribs['rc_user_text'], false );
}
+ $title = Title::makeTitle(
$this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] );
+
# @todo FIXME: This would be better as an extension hook
$enotif = new EmailNotification();
- $title = Title::makeTitle(
$this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] );
- $enotif->notifyOnPageChange( $editor, $title,
+ $status = $enotif->notifyOnPageChange( $editor, $title,
$this->mAttribs['rc_timestamp'],
$this->mAttribs['rc_comment'],
$this->mAttribs['rc_minor'],
@@ -731,7 +732,7 @@
# see http://www.irssi.org/documentation/formats for some
colour codes. prefix is \003,
# no colour (\003) switches back to the term default
$fullString = "$titleString\0034 $flag\00310 " .
- "\00302$url\003 \0035*\003 \00303$user\003
\0035*\003 $szdiff \00310$comment\003\n";
+ "\00302$url\003 \0035*\003
\00303$user\003 \0035*\003 $szdiff \00310$comment\003\n";
return $fullString;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs