From: Ariel Glenn Date: Thu, 15 Jul 2010 21:25:31 +0000 (+0000) Subject: intval ( $id ) once in caller instead of in all the getTextXXX functions X-Git-Tag: 1.31.0-rc.0~36133 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=9f6103db518e982115ff7b3029140cf491162414;p=lhc%2Fweb%2Fwiklou.git intval ( $id ) once in caller instead of in all the getTextXXX functions --- 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 ),