From ca32f08966f1b51fcb19460f0996bb0c4048e6fe Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 3 Dec 2011 13:29:22 +0100 Subject: Update to MediaWiki 1.18.0 * also update ArchLinux skin to chagnes in MonoBook * Use only css to hide our menu bar when printing --- maintenance/rebuildtextindex.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'maintenance/rebuildtextindex.php') diff --git a/maintenance/rebuildtextindex.php b/maintenance/rebuildtextindex.php index 46282c18..04606c75 100644 --- a/maintenance/rebuildtextindex.php +++ b/maintenance/rebuildtextindex.php @@ -28,6 +28,10 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); class RebuildTextIndex extends Maintenance { const RTI_CHUNK_SIZE = 500; + + /** + * @var DatabaseBase + */ private $db; public function __construct() { @@ -40,10 +44,11 @@ class RebuildTextIndex extends Maintenance { } public function execute() { - global $wgTitle, $wgDBtype; + global $wgTitle; // Shouldn't be needed for Postgres - if ( $wgDBtype == 'postgres' ) { + $this->db = wfGetDB( DB_MASTER ); + if ( $this->db->getType() == 'postgres' ) { $this->error( "This script is not needed when using Postgres.\n", true ); } -- cgit v1.2.3-54-g00ecf