r53908 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53907‎ | r53908 | r53909 >
Date:22:09, 28 July 2009
Author:nad
Status:deferred
Tags:
Comment:
fix problem with incompatible fetchObject() on 1.16alpha
Modified paths:
  • /trunk/extensions/SimpleSecurity/SimpleSecurity.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SimpleSecurity/SimpleSecurity.php
@@ -22,7 +22,7 @@
2323 if ( !defined( 'MEDIAWIKI' ) ) die( 'Not an entry point.' );
2424 if ( version_compare( $wgVersion, '1.12.0' ) < 0 ) die( 'Sorry, this extension requires at least MediaWiki version 1.12.0' );
2525
26 -define( 'SIMPLESECURITY_VERSION', '4.3.3, 2009-05-18' );
 26+define( 'SIMPLESECURITY_VERSION', '4.3.4, 2009-07-29' );
2727
2828 # Load the SimpleSecurity class and messages
2929 $dir = dirname( __FILE__ ) . '/';
@@ -98,7 +98,7 @@
9999 $patched = preg_replace_callback("/(?<=SELECT ).+?(?= FROM)/", array("SimpleSecurity", "patchSQL"), $sql, 1, $count);
100100 return parent::query($count ? $patched : $sql, $fname, $tempIgnore);
101101 }
102 - function fetchObject(&$res) {
 102+ function fetchObject($res) {
103103 global $wgSimpleSecurity;
104104 $row = parent::fetchObject($res);
105105 if (is_object($wgSimpleSecurity) && isset($row->old_text)) $wgSimpleSecurity->validateRow($row);

Status & tagging log