From 20661fd0d378e93d29ab7f31b569152c19e24571 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 31 Aug 2008 21:40:24 +0200 Subject: [PATCH] new PlArrayIterator is deprecated. Signed-off-by: Florent Bruneau --- core | 2 +- include/vcard.inc.php | 2 +- modules/carnet/feed.inc.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core b/core index eda1814..5177a1b 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit eda18149373d85ebbf9a529fb56bcb6d213e2b84 +Subproject commit 5177a1b50e47e7d62a66aba9565580af3abf15dd diff --git a/include/vcard.inc.php b/include/vcard.inc.php index 0fc553e..2be89de 100644 --- a/include/vcard.inc.php +++ b/include/vcard.inc.php @@ -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) diff --git a/modules/carnet/feed.inc.php b/modules/carnet/feed.inc.php index 68f7fcf..fad227c 100644 --- a/modules/carnet/feed.inc.php +++ b/modules/carnet/feed.inc.php @@ -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() -- 2.1.4