From ba2173e2481b222ca2a6c52dd7a3c3e9fc7fc0dc Mon Sep 17 00:00:00 2001 From: Cyril Vazquez <cyril.vazquez@maarch.org> Date: Fri, 12 Apr 2013 14:01:01 +0000 Subject: [PATCH] Fix: user viewController::getElementById instead of view::getElementById to ensure compatibility with PHP < 5.3.8 / libxml < 1.7.7 --- core/trunk/core/tests/class/ViewController.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/core/trunk/core/tests/class/ViewController.php b/core/trunk/core/tests/class/ViewController.php index 70fba4c09d0..c25b1afa54e 100644 --- a/core/trunk/core/tests/class/ViewController.php +++ b/core/trunk/core/tests/class/ViewController.php @@ -54,12 +54,7 @@ class ViewController parent::__construct($view); $this->view = $this->document; - - # Set id attributes in view - $ids = $this->query('//*[@id]'); - for($i=0, $l=$ids->length; $i<$l; $i++) - $ids->item($i)->setIdAttribute('id', true); - + return $this->view; } @@ -71,12 +66,7 @@ class ViewController parent::__construct($view); $this->view = $this->document; - - # Set id attributes in view - $ids = $this->query('//*[@id]'); - for($i=0, $l=$ids->length; $i<$l; $i++) - $ids->item($i)->setIdAttribute('id', true); - + return $this->view; } -- GitLab