Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / includes / api / ApiQueryIWLinks.php
index 9313af3..e841788 100644 (file)
@@ -2,8 +2,6 @@
 /**
  * API for MediaWiki 1.17+
  *
- * Created on May 14, 2010
- *
  * Copyright © 2010 Sam Reed
  * Copyright © 2006 Yuri Astrakhan "<Firstname><Lastname>@gmail.com"
  *
@@ -75,7 +73,7 @@ class ApiQueryIWLinks extends ApiQueryBase {
                        $this->dieContinueUsageIf( count( $cont ) != 3 );
                        $op = $params['dir'] == 'descending' ? '<' : '>';
                        $db = $this->getDB();
-                       $iwlfrom = intval( $cont[0] );
+                       $iwlfrom = (int)$cont[0];
                        $iwlprefix = $db->addQuotes( $cont[1] );
                        $iwltitle = $db->addQuotes( $cont[2] );
                        $this->addWhere(