From: Florent Bruneau Date: Sun, 31 Aug 2008 19:40:24 +0000 (+0200) Subject: new PlArrayIterator is deprecated. X-Git-Tag: xorg/0.10.0~105 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=20661fd0d378e93d29ab7f31b569152c19e24571;p=platal.git new PlArrayIterator is deprecated. Signed-off-by: Florent Bruneau --- 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()