* Drop 5.1 compat code
[lhc/web/wiklou.git] / includes / CacheDependency.php
index fd72acb..74ca286 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 /**
  * This class stores an arbitrary value along with its dependencies.
- * Users should typically only use DependencyWrapper::getFromCache(), rather
- * than instantiating one of these objects directly.
+ * Users should typically only use DependencyWrapper::getValueFromCache(),
+ * rather than instantiating one of these objects directly.
  * @ingroup Cache
  */
 
@@ -280,7 +280,7 @@ class TitleListDependency extends CacheDependency {
                                __METHOD__
                        );
 
-                       while ( $row = $dbr->fetchObject( $res ) ) {
+                       foreach ( $res as $row ) {
                                $timestamps[$row->page_namespace][$row->page_title] = $row->page_touched;
                        }
                }