Skip to content
Snippets Groups Projects
Commit 36843456 authored by efalcy's avatar efalcy
Browse files

Rename helper DomainBrowser to renderDomainBrowser due to conflict, enlarge configuration window

parent 917f478a
2 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!4dev#12091 Moulins portail jeunesse
<?php
echo $this->domainsBrowsing($this->current_domain,$this->current_breadcrumb);
echo $this->renderDomainBrowser($this->current_domain,$this->current_breadcrumb);
?>
......@@ -29,9 +29,8 @@ if ($this->is_pertinence) {
}
if ($this->breadcrumb)
echo (new ZendAfi_View_Helper_DomainsBrowsing())
->setView($this)
->displayParentsDomains($this->breadcrumb);
echo $this->getHelper('RenderDomainBrowser')
->displayParentsDomains($this->breadcrumb);
?>
......
......@@ -30,7 +30,7 @@ class Class_Systeme_ModulesAccueil_DomainBrowser extends Class_Systeme_ModulesAc
protected $_popupWidth = 600;
protected $_popupHeight = 200;
protected $_popupHeight = 600;
protected $_defaultValues = ['titre' => 'Domaines',
'root_domain_id' => 0];
......
......@@ -22,9 +22,8 @@ class ZendAfi_View_Helper_Accueil_DomainBrowser extends ZendAfi_View_Helper_Accu
/** @return array */
public function getHTML() {
$this->titre = $this->preferences['titre'];
$current_domain = Class_Catalogue::find($this->preferences['root_domain_id']);
$this->contenu = $this->view->domainBrowser($current_domain, '');
$this->contenu = $this->view->renderDomainBrowser($current_domain, []);
return $this->getHtmlArray();
}
......
......@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_View_Helper_DomainBrowser extends ZendAfi_View_Helper_BaseHelper {
public function domainBrowser($current_domain,$current_breadcrumb) {
class ZendAfi_View_Helper_RenderDomainBrowser extends ZendAfi_View_Helper_BaseHelper {
public function renderDomainBrowser($current_domain,$current_breadcrumb) {
if (null == $current_domain)
$current_domain = Class_Catalogue::getRoot();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment