<?php
/**
* @package MediaWiki
+ * Contain class to show various lists of change:
+ * - what's link here
+ * - related changes
+ * - recent changes
*/
/**
asort ( $userlinks ) ;
$users = array () ;
foreach ( $userlinks as $userlink => $count) {
- $text = $userlink ;
- if ( $count > 1 ) $text .= " ({$count}×)" ;
+ $text = $userlink;
+ if ( $count > 1 ) $text .= ' ('.$count.'×)' ;
array_push ( $users , $text ) ;
}
+
$users = ' <span class="changedby">['.implode('; ',$users).']</span>';
# Arrow
$r .= $tl ;
# Main line
-
$r .= '<tt>' ;
$r .= $this->recentChangesFlags( $isnew, false, $unpatrolled );
$o = 'oldid='.$rc_last_oldid ;
}
if ( $rc_type == RC_LOG ) {
- $link = $rcObj->timestamp ;
+ $link = $rcObj->timestamp;
} else {
- $link = $this->skin->makeKnownLinkObj( $rcObj->getTitle(), $rcObj->timestamp , "{$curIdEq}&$o" ) ;
+ $link = $this->skin->makeKnownLinkObj( $rcObj->getTitle(), $rcObj->timestamp , $curIdEq.'&'.$o );
}
$link = '<tt>'.$link.'</tt>' ;
return '<div>'.$blockOut.'</div>' ;
}
+
+// FORMATTING STUFF
+
+
+
}
$s = '';
if ( $date != $this->lastdate ) {
if ( '' != $this->lastdate ) { $s .= "</ul>\n"; }
- $s .= "<h4>{$date}</h4>\n<ul class=\"special\">";
+ $s .= '<h4>'.$date."</h4>\n<ul class=\"special\">";
$this->lastdate = $date;
$this->rclistOpen = true;
}
$s .= '(' . $this->skin->makeKnownLinkObj( $rc->getTitle(), $logname ) . ')';
} else {
wfProfileIn("$fname-page");
+
# Diff link
if ( $rc_type == RC_NEW || $rc_type == RC_LOG ) {
$diffLink = $message['diff'];
} else {
- if ( $unpatrolled )
- $rcidparam = "&rcid={$rc_id}";
- else
- $rcidparam = "";
+ $rcidparam = $unpatrolled ? '&rcid='.$rc_id : '';
$diffLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), $message['diff'],
- "{$curIdEq}&diff={$rc_this_oldid}&oldid={$rc_last_oldid}{$rcidparam}",
- '', '', ' tabindex="'.$rc->counter.'"');
+ $curIdEq.'&diff='.$rc_this_oldid.'&oldid='.$rc_last_oldid.$rcidparam,
+ '', '', ' tabindex="'.$rc->counter.'"');
}
+
$s .= '('.$diffLink.') (';
# History link
# Article link
# If it's a new article, there is no diff link, but if it hasn't been
# patrolled yet, we need to give users a way to do so
- if ( $unpatrolled && $rc_type == RC_NEW )
+ if ( $unpatrolled && $rc_type == RC_NEW ) {
$articleLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), '', "rcid={$rc_id}" );
- else
+ } else {
$articleLink = $this->skin->makeKnownLinkObj( $rc->getTitle(), '' );
+ }
if ( $watched ) {
$articleLink = '<strong>'.$articleLink.'</strong>';