new PlArrayIterator is deprecated.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 31 Aug 2008 19:40:24 +0000 (21:40 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 31 Aug 2008 19:40:24 +0000 (21:40 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
core
include/vcard.inc.php
modules/carnet/feed.inc.php

diff --git a/core b/core
index eda1814..5177a1b 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit eda18149373d85ebbf9a529fb56bcb6d213e2b84
+Subproject commit 5177a1b50e47e7d62a66aba9565580af3abf15dd
index 0fc553e..2be89de 100644 (file)
@@ -52,7 +52,7 @@ class VCard extends PlVCard
 
     protected function fetch()
     {
-        return new PlArrayIterator($this->user_list);
+        return PlIteratorUtils::fromArray($this->user_list);
     }
 
     protected function buildEntry($entry)
index 68f7fcf..fad227c 100644 (file)
@@ -29,7 +29,7 @@ class CarnetFeedIterator implements PlIterator
     public function __construct(Notifs& $notifs)
     {
         $this->notifs =& $notifs;
-        $this->it = new PlArrayIterator($notifs->_data, 3);
+        $this->it = PlIteratorUtils::fromArray($notifs->_data, 3);
     }
 
     public function next()