Skip to content
Snippets Groups Projects
Commit ba2173e2 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Fix: user viewController::getElementById instead of view::getElementById to...

Fix: user viewController::getElementById instead of view::getElementById to ensure compatibility with PHP < 5.3.8 / libxml < 1.7.7
parent f9bcb773
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment