/**
* Format a line using the old system (aka without any javascript).
*/
- function recentChangesLine( &$rc, $watched = false ) {
+ public function recentChangesLine( &$rc, $watched = false ) {
global $wgContLang, $wgRCShowChangedSize;
$fname = 'ChangesList::recentChangesLineOld';
/**
* Format a line for enhanced recentchange (aka with javascript and block of lines).
*/
- function recentChangesLine( &$baseRC, $watched = false ) {
+ public function recentChangesLine( &$baseRC, $watched = false ) {
global $wgLang, $wgContLang;
# Create a specialised object
/**
* Enhanced RC group
*/
- function recentChangesBlockGroup( $block ) {
+ private function recentChangesBlockGroup( $block ) {
global $wgLang, $wgContLang, $wgRCShowChangedSize;
$r = '<table cellpadding="0" cellspacing="0" border="0" style="background: none"><tr>';
}
# History
- $r .= '(' . $this->skin->makeKnownLinkObj( $block[0]->getTitle(),
- $this->message['history'], $curIdEq.'&action=history' );
- $r .= ')';
-
+ if( $namehidden ) {
+ $r .= '(' . $this->message['history'] . ')';
+ } else {
+ $r .= '(' . $this->skin->makeKnownLinkObj( $block[0]->getTitle(),
+ $this->message['history'], $curIdEq.'&action=history' ) . ')';
+ }
+
$r .= $users;
$r .=$this->numberofWatchingusers($block[0]->numberofWatchingusers);
return $r;
}
- function maybeWatchedLink( $link, $watched=false ) {
+ private function maybeWatchedLink( $link, $watched=false ) {
if( $watched ) {
// FIXME: css style might be more appropriate
return '<strong class="mw-watched">' . $link . '</strong>';
* @return string HTML <img> tag
* @access private
*/
- function arrow( $dir, $alt='' ) {
+ private function arrow( $dir, $alt='' ) {
global $wgStylePath;
$encUrl = htmlspecialchars( $wgStylePath . '/common/images/Arr_' . $dir . '.png' );
$encAlt = htmlspecialchars( $alt );
* @return string HTML <img> tag
* @access private
*/
- function sideArrow() {
+ private function sideArrow() {
global $wgContLang;
$dir = $wgContLang->isRTL() ? 'l' : 'r';
return $this->arrow( $dir, '+' );
* @return string HTML <img> tag
* @access private
*/
- function downArrow() {
+ private function downArrow() {
return $this->arrow( 'd', '-' );
}
* @return string HTML <img> tag
* @access private
*/
- function spacerArrow() {
+ private function spacerArrow() {
return $this->arrow( '', ' ' );
}
* @return string HTML <td> tag
* @access private
*/
- function spacerIndent() {
+ private function spacerIndent() {
return ' ';
}
* Enhanced RC ungrouped line.
* @return string a HTML formated line (generated using $r)
*/
- function recentChangesBlockLine( $rcObj ) {
+ private function recentChangesBlockLine( $rcObj ) {
global $wgContLang, $wgRCShowChangedSize;
# Get rc_xxxx variables
* If enhanced RC is in use, this function takes the previously cached
* RC lines, arranges them, and outputs the HTML
*/
- function recentChangesBlock() {
+ private function recentChangesBlock() {
if( count ( $this->rc_cache ) == 0 ) {
return '';
}
* Returns text for the end of RC
* If enhanced RC is in use, returns pretty much all the text
*/
- function endRecentChangesList() {
+ public function endRecentChangesList() {
return $this->recentChangesBlock() . parent::endRecentChangesList();
}