Wikia code/includes/ChangesList.php
Appearance
< Wikia code | includes
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. The information shown below refers to the now unmaintained 1.16 MediaWiki release. The current stable release number is 1.43.0. |
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\ChangesList.php 2011-07-18 22:31:28.194336000 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\ChangesList.php 2011-08-17 15:28:46.553710900 +0100
@@ -751,6 +751,7 @@
if( $rc_type == RC_LOG ){
$secureName = SpecialPage::getTitleFor( 'Log', $rc_log_type )->getPrefixedDBkey();
}
+ wfRunHooks( 'ChangesListMakeSecureName', array(&$this, &$secureName, &$rc) );
if( !isset( $this->rc_cache[$secureName] ) ) {
$this->rc_cache[$secureName] = array();
}
@@ -839,8 +840,8 @@
$expandTitle = htmlspecialchars( wfMsg( 'rc-enhanced-expand' ) );
$closeTitle = htmlspecialchars( wfMsg( 'rc-enhanced-hide' ) );
- $tl = "<span id='mw-rc-openarrow-$jsid' class='mw-changeslist-expanded' style='visibility:hidden'><a href='#' $toggleLink title='$expandTitle'>" . $this->sideArrow() . "</a></span>";
- $tl .= "<span id='mw-rc-closearrow-$jsid' class='mw-changeslist-hidden' style='display:none'><a href='#' $toggleLink title='$closeTitle'>" . $this->downArrow() . "</a></span>";
+ $tl = "<span id='mw-rc-openarrow-$jsid' class='mw-changeslist-expanded changes-list-entry' style='visibility:hidden'><a href='#' $toggleLink title='$expandTitle' class='mw-arr-r'>" . $this->sideArrow() . "</a></span>";
+ $tl .= "<span id='mw-rc-closearrow-$jsid' class='mw-changeslist-hidden changes-list-entry' style='display:none'><a href='#' $toggleLink title='$closeTitle' class='mw-arr-d'>" . $this->downArrow() . "</a></span>";
$r .= '<td class="mw-enhanced-rc">'.$tl.' ';
# Main line
@@ -937,6 +938,8 @@
$r .= "</td></tr></table>\n";
+ wfRunHooks( 'ChangesListHeaderBlockGroup', array(&$this, &$r, &$block) );
+
# Sub-entries
$r .= '<div id="mw-rc-subentries-'.$jsid.'" class="mw-changeslist-hidden">';
$r .= '<table class="mw-enhanced-rc">';
@@ -952,8 +955,12 @@
$r .= '<tr><td style="vertical-align:top;font-family:monospace; padding:0px;">';
$r .= $this->spacerIndent() . $this->spacerIndent();
$r .= $this->recentChangesFlags( $rc_new, $rc_minor, $rcObj->unpatrolled, ' ', $rc_bot );
+ # added by Moli
+ if ( isset($rcObj->mOtherFlags) && is_array($rcObj->mOtherFlags) ) {
+ $r .= ' ' . implode( ' ', $rcObj->mOtherFlags );
+ }
+ $r .= ' </tt></td><td valign="top">';
$r .= ' </td><td style="vertical-align:top; padding:0px;"><span style="font-family:monospace">';
-
$params = $queryParams;
if( $rc_this_oldid != 0 ) {
@@ -961,7 +968,7 @@
}
# Log timestamp
- if( $rc_type == RC_LOG ) {
+ if( $rc_type == RC_LOG && !isset($rcObj->ownTitle) ) {
$link = $rcObj->timestamp;
# Revision link
} else if( !ChangesList::userCan($rcObj,Revision::DELETED_TEXT) ) {
@@ -970,7 +977,11 @@
if ( $rcObj->unpatrolled && $rc_type == RC_NEW) {
$params['rcid'] = $rcObj->mAttribs['rc_id'];
}
-
+ if (isset($rcObj->ownTitle)) {
+ # added by Moli
+ $link = $this->skin->makeKnownLinkObj( $rcObj->getTitle(), $rcObj->ownTitle, $curIdEq.'&'.$o.$rcIdEq );
+ }
+ else {
$link = $this->skin->link(
$rcObj->getTitle(),
$rcObj->timestamp,
@@ -978,6 +989,7 @@
$params,
array( 'known', 'noclasses' )
);
+ }
if( $this->isDeleted($rcObj,Revision::DELETED_TEXT) )
$link = '<span class="history-deleted">'.$link.'</span> ';
}