* to ensure that client-side caches don't keep obsolete copies of global
* styles.
*/
-$wgStyleVersion = '211';
+$wgStyleVersion = '212';
# Server-side caching:
$this->type, $this->action, $this->target, $this->comment, $this->params, $newId );
$rc->notifyRC2UDP();
}
- return true;
+ return $newId;
}
/**
return $this->saveContent();
}
+
+ public function addRelations( $field, $values, $logid ) {
+ $data = array();
+ foreach( $values as $value ) {
+ $data[] = array('ls_field' => $field,'ls_value' => $value,'ls_log_id' => $logid);
+ }
+ $dbw = wfGetDB( DB_MASTER );
+ $dbw->insert( 'log_search', $data, __METHOD__ );
+ return true;
+ }
/**
* Create a blob from a parameter array
global $wgUser, $wgScript, $wgEnableHtmlDiff;
$this->lastdate = '';
$s = wfMsgExt( 'histlegend', array( 'parse') );
- if( $wgUser->isAllowed('deleterevision') ) {
+ if( $this->linesonpage > 1 && $wgUser->isAllowed('deleterevision') ) {
$revdel = SpecialPage::getTitleFor( 'Revisiondelete' );
$s .= Xml::openElement( 'form',
array(
if( $wgUser->isAllowed( 'deleterevision' ) ) {
// Hide JS by default for non-JS browsing
- $hidden = array( 'style' => 'visibility:hidden' );
+ $hidden = array( 'style' => 'display:none' );
// If revision was hidden from sysops
if( !$rev->userCan( Revision::DELETED_RESTRICTED ) ) {
$del = Xml::check( 'deleterevisions', false,
// Attach event handlers to the input elements on history page
function histrowinit() {
var hf = document.getElementById('pagehistory');
- if (!hf) {
- return;
- }
+ if (!hf) return;
var df = document.getElementById('mw-history-revdeleteform');
if( df ) df.style.visibility = 'visible'; // Enable JS form
var lis = hf.getElementsByTagName('li');
}
var check = deleteCheck(lis[i]);
if( df && check ) {
- check.style.visibility = 'visible'; // Enable JS form
+ check.style.display = 'inline'; // Enable JS form
}
}
diffcheck();