From 9f6103db518e982115ff7b3029140cf491162414 Mon Sep 17 00:00:00 2001 From: Ariel Glenn Date: Thu, 15 Jul 2010 21:25:31 +0000 Subject: [PATCH] intval ( $id ) once in caller instead of in all the getTextXXX functions --- maintenance/dumpTextPass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index 75fd9ab59e..4e198d1e51 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -206,6 +206,7 @@ class TextPassDumper extends BackupDumper { private function doGetText( $id ) { + $id = intval( $id ); $this->failures = 0; $ex = new MWException( "Graceful storage failure" ); while (true) { @@ -273,7 +274,6 @@ class TextPassDumper extends BackupDumper { */ private function getTextDb( $id ) { global $wgContLang; - $id = intval( $id ); $row = $this->db->selectRow( 'text', array( 'old_text', 'old_flags' ), array( 'old_id' => $id ), -- 2.20.1