* @returns nothing
*/
function history() {
- global $wgOut, $wgRequest, $wgTitle, $wgScript;
+ global $wgOut, $wgRequest, $wgScript;
/*
* Allow client caching.
* @return string HTML output
*/
function beginHistoryList() {
- global $wgTitle, $wgUser, $wgScript, $wgEnableHtmlDiff;
+ global $wgUser, $wgScript, $wgEnableHtmlDiff;
$this->lastdate = '';
$s = wfMsgExt( 'histlegend', array( 'parse') );
if( $wgUser->isAllowed('deleterevision') ) {
'style' => 'visibility:hidden;float:right;'
)
);
- $s .= Xml::hidden( 'target', $wgTitle->getPrefixedDbKey() );
+ $s .= Xml::hidden( 'target', $this->mTitle->getPrefixedDbKey() );
$s .= Xml::hidden( 'oldid', '', array('id'=>'revdel-oldid') );
$s .= Xml::submitButton( wfMsg( 'showhideselectedversions' ) );
$s .= Xml::closeElement( 'form' );
}
$s .= Xml::openElement( 'form', array( 'action' => $wgScript,
'id' => 'mw-history-compare' ) );
- $s .= Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() );
+ $s .= Xml::hidden( 'title', $this->mTitle->getPrefixedDbKey() );
if( $wgEnableHtmlDiff ) {
$s .= $this->submitButton( wfMsg( 'visualcomparison'),
array(
$s = '';
$changes = self::getChanges( $nbitfield, $obitfield );
if( count( $changes[0] ) ) {
- $s .= wfMsgForContent ( 'revdelete-hid', implode ( ', ', $changes[0] ) );
+ $s .= wfMsgForContent( 'revdelete-hid', implode( ', ', $changes[0] ) );
}
if( count( $changes[1] ) ) {
if ($s) $s .= '; ';
- $s .= wfMsgForContent ( 'revdelete-unhid', implode ( ', ', $changes[1] ) );
+ $s .= wfMsgForContent( 'revdelete-unhid', implode( ', ', $changes[1] ) );
}
if( count( $changes[2] ) ) {
$s .= $s ? ' (' . $changes[2][0] . ')' : $changes[2][0];