to create or update pages.
* Fix table prefix usage in Block::enumBlocks
* (bug 3244) Fix remote image loading hack, JavaScript injection on MSIE
+* Fix upgrade from 1.4 due to version number check breakage [for rc future]
+* Fix upgrade from 1.4 with no old revisions
=== Caveats ===
}
function newSchema() {
- global $wgVersion;
- return version_compare( $wgVersion, '1.5alpha', 'ge' );
+ return class_exists( 'Revision' );
}
}
echo "......Locking tables.\n";
$wgDatabase->query( "LOCK TABLES $page WRITE, $revision WRITE, $old WRITE, $cur WRITE", $fname );
- $maxold = $wgDatabase->selectField( 'old', 'max(old_id)', '', $fname );
+ $maxold = intval( $wgDatabase->selectField( 'old', 'max(old_id)', '', $fname ) );
echo wfTimestamp();
echo "......maxold is {$maxold}\n";
* @access private
*/
function newSchema() {
- global $wgVersion;
- return version_compare( $wgVersion, '1.5alpha', 'ge' );
+ return class_exists( 'Revision' );
}
/**