openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit be6ec4aa33f70b1661b09ed040ca7d4070ebbc81
parent 199220fcf5ad450a60ae3d8507475366949afcae
Author: Jan Dankert <devnull@localhost>
Date:   Sat,  3 Dec 2011 14:01:16 +0100

Die Listenansicht (Vorlagen,Sprachen,Varianten,Benutzer,Gruppen,Projekte) in eigene Action-Klassen ausgelagert.

Diffstat:
action/GrouplistAction.class.php | 64++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
action/LanguagelistAction.class.php | 128+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
action/ModellistAction.class.php | 115+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
action/ProjectlistAction.class.php | 60++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
action/ProjectlistAction.ini.php | 0
action/TemplatelistAction.class.php | 65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
action/UserlistAction.class.php | 62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
dispatcher.php | 10+++++++---
themes/default/layout/perspective/administration.ini.php | 2+-
themes/default/layout/perspective/normal.ini.php | 2+-
themes/default/templates/languagelist/show.tpl.src.xml | 4++++
themes/default/templates/modellist/show.tpl.src.xml | 4++++
themes/default/templates/projectlist/show.tpl.src.xml | 4++++
themes/default/templates/templatelist/show.tpl.src.xml | 29+++++++++++++++++++++++++++++
themes/default/templates/userlist/show.tpl.src.xml | 4++++
util/AdministrationTree.class.php | 8++++----
util/ProjectTree.class.php | 6+++---
17 files changed, 555 insertions(+), 12 deletions(-)

diff --git a/action/GrouplistAction.class.php b/action/GrouplistAction.class.php @@ -0,0 +1,63 @@ +<?php +// --------------------------------------------------------------------------- +// $Id$ +// --------------------------------------------------------------------------- +// OpenRat Content Management System +// Copyright (C) 2002-2004 Jan Dankert, cms@jandankert.de +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// --------------------------------------------------------------------------- + + +/** + * Action-Klasse zum Bearbeiten einer Benutzergruppe. + * + * @author $Author$ + * @version $Revision$ + * @package openrat.actions + */ + +class GrouplistAction extends Action +{ + function GrouplistAction() + { + $this->requireAdmin(); + } + + + /** + * Liste aller Gruppen. + */ + function showView() + { + $list = array(); + + foreach( Group::getAll() as $id=>$name ) + { + $list[$id] = array(); + $list[$id]['url' ] = Html::url('main','group',$id,array(REQ_PARAM_TARGETSUBACTION=>'edit')); + $list[$id]['name'] = $name; + } + + $this->setTemplateVar('el', $list); + } + + + function editView() + { + $this->nextSubAction('show'); + } + +}+ \ No newline at end of file diff --git a/action/LanguagelistAction.class.php b/action/LanguagelistAction.class.php @@ -0,0 +1,127 @@ +<?php +// --------------------------------------------------------------------------- +// $Id$ +// --------------------------------------------------------------------------- +// OpenRat Content Management System +// Copyright (C) 2002-2004 Jan Dankert, cms@jandankert.de +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// --------------------------------------------------------------------------- +// $Log$ +// Revision 1.11 2007-05-24 19:47:48 dankert +// Direktes Ausw?hlen von Sprache/Modell in der Projektauswahlliste. +// +// Revision 1.10 2007-05-08 21:16:20 dankert +// Korrektur und Erweiterung von Hinzuf?gen/Bearbeiten von Sprachen. +// +// Revision 1.9 2007/01/21 22:26:45 dankert +// Korreketur beim Hinzuf?gen/Entfernen von Sprachen. +// +// Revision 1.8 2006/01/29 17:18:59 dankert +// Steuerung der Aktionsklasse ?ber .ini-Datei, dazu umbenennen einzelner Methoden +// +// Revision 1.7 2004/12/25 20:50:13 dankert +// Korrektur Sprach-Aenderung +// +// Revision 1.6 2004/12/19 14:55:00 dankert +// Korrektur der Laenderlisten +// +// Revision 1.5 2004/12/13 22:17:51 dankert +// URL-Korrektur +// +// Revision 1.4 2004/11/27 13:06:44 dankert +// Ausgabe von Meldungen +// +// Revision 1.3 2004/11/10 22:37:23 dankert +// Korrektur Auswahl-Url +// +// Revision 1.2 2004/05/02 14:49:37 dankert +// Einf?gen package-name (@package) +// +// Revision 1.1 2004/04/24 15:14:52 dankert +// Initiale Version +// +// --------------------------------------------------------------------------- + + +/** + * Action-Klasse f?r die Bearbeitung einer Sprache + * @version $Id$ + * @author $Author$ + * @package openrat.actions + */ +class LanguagelistAction extends Action +{ + + /** + * Konstruktor + */ + function LanguagelistAction() + { + $this->project = Session::getProject(); + } + + + + function showView() + { + global $conf; + $countryList = $conf['countries']; + + $list = array(); + + $actLanguage = Session::getProjectLanguage(); + $this->setTemplateVar('act_languageid',$actLanguage->languageid); + + foreach( $this->project->getLanguageIds() as $id ) + { + $l = new Language( $id ); + $l->load(); + + unset( $countryList[strtoupper($l->isoCode)] ); + + $list[$id] = array(); + $list[$id]['name' ] = $l->name; + $list[$id]['isocode'] = $l->isoCode; + + if ( $this->userIsAdmin() ) + { + $list[$id]['url' ] = Html::url('language','edit',$id, + array() ); + + if ( ! $l->isDefault ) + $list[$id]['default_url'] = Html::url( 'language','setdefault',$id ); + } + + if ( $actLanguage->languageid != $l->languageid ) + $list[$id]['select_url'] = Html::url( 'index','language',$id ); + } + +// if ( $this->userIsAdmin() ) +// { +// asort($countryList); +// $this->setTemplateVar('isocodes',$countryList); +// } + + $this->setTemplateVar('el',$list); + } + + + + function editView() + { + $this->nextSubAction('show'); + } +}+ \ No newline at end of file diff --git a/action/ModellistAction.class.php b/action/ModellistAction.class.php @@ -0,0 +1,114 @@ +<?php +// --------------------------------------------------------------------------- +// $Id$ +// --------------------------------------------------------------------------- +// OpenRat Content Management System +// Copyright (C) 2002-2004 Jan Dankert, cms@jandankert.de +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// --------------------------------------------------------------------------- +// $Log$ +// Revision 1.10 2007-05-08 20:25:58 dankert +// Erweiterung der Methode "checkmenu()" +// +// Revision 1.9 2007-05-08 20:21:03 dankert +// ?berschreiben der Methode "checkmenu()" +// +// Revision 1.8 2007-04-08 21:18:16 dankert +// Korrektur URL in listing() +// +// Revision 1.7 2007/01/21 22:27:49 dankert +// Direkt Punkt "Bearbeiten" ?ffnen. +// +// Revision 1.6 2006/01/29 17:18:58 dankert +// Steuerung der Aktionsklasse ?ber .ini-Datei, dazu umbenennen einzelner Methoden +// +// Revision 1.5 2004/12/19 14:55:27 dankert +// Anpassung von urls +// +// Revision 1.4 2004/12/13 22:17:51 dankert +// URL-Korrektur +// +// Revision 1.3 2004/05/07 21:37:31 dankert +// Url ?ber Html::url erzeugen +// +// Revision 1.2 2004/05/02 14:49:37 dankert +// Einf?gen package-name (@package) +// +// Revision 1.1 2004/04/24 15:14:52 dankert +// Initiale Version +// +// --------------------------------------------------------------------------- + + +/** + * Action-Klasse zum Bearbeiten eines Projetmodells + * + * @author Jan Dankert + * @package openrat.actions + */ +class ModellistAction extends Action +{ + function ModellistAction() + { + if ( $this->getRequestId() != 0 ) + { + $this->model = new Model( $this->getRequestId() ); + $this->model->load(); + } + + $this->project = Session::getProject(); + } + + + function showView() + { + global $conf_php; + $actModel = Session::getProjectModel(); + +// $var['act_modelid'] = $this->getSessionVar('modelid'); + + $list = array(); + foreach( $this->project->getModelIds() as $id ) + { + $m = new Model( $id ); + $m->load(); + + $list[$id]['name'] = $m->name; + + if ( $this->userIsAdmin() ) + $list[$id]['url' ] = Html::url('model','edit',$id, + array() ); + + if ( ! $m->isDefault && $this->userIsAdmin() ) + $list[$id]['default_url'] = Html::url('model','setdefault',$id); + + if ( $actModel->modelid != $m->modelid ) + $list[$id]['select_url' ] = Html::url('index','model',$id); + } + $this->setTemplateVar( 'el',$list ); + $this->setTemplateVar( 'add',$this->userIsAdmin() ); + } + + + /** + * Bearbeiten der Variante. + * Ermitteln aller Eigenschaften der Variante. + */ + function editView() + { + $this->nextSubActionsetTemplateVars('show'); + } +}+ \ No newline at end of file diff --git a/action/ProjectlistAction.class.php b/action/ProjectlistAction.class.php @@ -0,0 +1,59 @@ +<?php +// OpenRat Content Management System +// Copyright (C) 2002-2004 Jan Dankert, cms@jandankert.de +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +/** + * Action-Klasse zum Bearbeiten eines Projektes + * @author $Author$ + * @version $Revision$ + * @package openrat.actions + */ +class ProjectlistAction extends Action +{ + function ProjectlistAction() + { + $this->requireAdmin(); + } + + + public function editView() + { + $this->nextSubAction('show'); + } + + /** + * Liste aller Projekte anzeigen. + * + */ + public function showView() + { + global $conf_php; + + // Projekte ermitteln + $list = array(); + + foreach( Project::getAll() as $id=>$name ) + { + $list[$id] = array(); + $list[$id]['url' ] = Html::url('project','edit',$id); + $list[$id]['use_url' ] = Html::url('tree' ,'load',0 ,array('projectid'=>$id,'target'=>'tree')); + $list[$id]['name' ] = $name; + } + $this->setTemplateVar('el',$list); + } +}+ \ No newline at end of file diff --git a/action/ProjectlistAction.ini.php b/action/ProjectlistAction.ini.php diff --git a/action/TemplatelistAction.class.php b/action/TemplatelistAction.class.php @@ -0,0 +1,64 @@ +<?php +// OpenRat Content Management System +// Copyright (C) 2002-2009 Jan Dankert +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +/** + * Action-Klasse zum Bearbeiten einer Seitenvorlage. + * + * @author Jan Dankert + * @package openrat.actions + */ + +class TemplatelistAction extends Action +{ + function TemplatelistAction() + { + } + + + + /** + * Bearbeiten einer Vorlage + */ + function editView() + { + $this->nextSubActionsetTemplateVar('show'); + } + + + // Anzeigen aller Templates + // + function showView() + { + global $conf_php; + + $list = array(); + + foreach( Template::getAll() as $id=>$name ) + { + $list[$id] = array(); + $list[$id]['name'] = $name; + $list[$id]['url' ] = Html::url('template','el',$id,array()); + } + +// $var['templatemodelid'] = htmlentities( $id ); +// $var['text'] = htmlentities( $text ); + $this->setTemplateVar('templates',$list); + } + + +}+ \ No newline at end of file diff --git a/action/UserlistAction.class.php b/action/UserlistAction.class.php @@ -0,0 +1,61 @@ +<?php +// --------------------------------------------------------------------------- +// $Id$ +// --------------------------------------------------------------------------- +// OpenRat Content Management System +// Copyright (C) 2002-2004 Jan Dankert, cms@jandankert.de +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +/** + * Action-Klasse zum Bearbeiten eines Benutzers + * @author $Author$ + * @version $Revision$ + * @package openrat.actions + */ +class UserlistAction extends Action +{ + function UserlistAction() + { + $this->requireAdmin(); + } + + + function showView() + { + $list = array(); + + foreach( User::getAllUsers() as $user ) + { + $list[$user->userid] = $user->getProperties(); + $list[$user->userid]['url' ] = Html::url('main','user',$user->userid, + array(REQ_PARAM_TARGETSUBACTION=>'edit') ); + } + $this->setTemplateVar('el',$list); + } + + + /** + * Eigenschaften des Benutzers anzeigen + */ + function editView() + { + $this->nextSubAction('show'); + } + + + +}+ \ No newline at end of file diff --git a/dispatcher.php b/dispatcher.php @@ -185,8 +185,8 @@ require( OR_ACTIONCLASSES_DIR.'/ObjectAction.class.php' ); $actionClassName = ucfirst($action).'Action'; -if ( !isset($conf['action'][$actionClassName]) ) - Http::serverError("Action '$action' is undefined."); +//if ( !isset($conf['action'][$actionClassName]) ) +// Http::serverError("Action '$action' is undefined."); require_once( OR_ACTIONCLASSES_DIR.'/'.$actionClassName.'.class.php' ); @@ -199,7 +199,11 @@ $sConf = @$conf['action'][$actionClassName][$subaction]; // Erzeugen der Action-Klasse $do = new $actionClassName; -$do->actionConfig = $conf['action'][$actionClassName]; + +// TODO: ActionConfig entfernen. +$do->actionConfig = @$conf['action'][$actionClassName]; +//$do->actionConfig = array(); + $do->actionClassName = $actionClassName; $do->actionName = $action; if ( $subaction == '' ) diff --git a/themes/default/layout/perspective/administration.ini.php b/themes/default/layout/perspective/administration.ini.php @@ -11,7 +11,7 @@ refreshable=false [content] -views=listing,edit,pw,export,maintenance +views=edit,pw,export,maintenance action=project refreshable=true default=edit diff --git a/themes/default/layout/perspective/normal.ini.php b/themes/default/layout/perspective/normal.ini.php @@ -13,7 +13,7 @@ refreshable=false title= default=show -views=listing,show,edit,prop,pub,rights +views=show,edit,prop,pub,rights action=folder refreshable=true diff --git a/themes/default/templates/languagelist/show.tpl.src.xml b/themes/default/templates/languagelist/show.tpl.src.xml @@ -0,0 +1,3 @@ +<output xmlns="http://www.openrat.de/template" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"><dummy><window icon="language"><table><row class="headline"><cell><text key="name"></text></cell><cell><text raw=""></text></cell><cell><text raw=""></text></cell><cell><text raw=""></text></cell></row><list list="el" extract="true"><row class="data"><cell url="var:url"><image file="icon_language"></image><text var="name" maxlength="25"></text></cell><cell><text var="isocode"></text></cell><cell url="var:default_url"><if present="default_url"><text text="GLOBAL_make_default"></text></if><else><text text="GLOBAL_is_default"></text></else></cell><cell url="var:select_url"><if present="select_url"><text text="GLOBAL_select"></text></if><else><text text="GLOBAL_selected"></text></else></cell></row><set var="select_url"></set><set var="default_url"></set></list></table></window></dummy></output>+ \ No newline at end of file diff --git a/themes/default/templates/modellist/show.tpl.src.xml b/themes/default/templates/modellist/show.tpl.src.xml @@ -0,0 +1,3 @@ +<output xmlns="http://www.openrat.de/template" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"><dummy><window icon="group" name="GLOBAL_MODELS" widths="50%,25%,25%"><table><row class="headline"><cell><text key="name"></text></cell><cell><text raw=""></text></cell><cell><text raw=""></text></cell></row><list list="el" extract="true"><row class="data"><cell url="var:url"><link target="cms_main"><image file="icon_model"></image><text var="name" maxlength="25"></text></link></cell><cell url="var:default_url"><if present="default_url"><text text="GLOBAL_make_default"></text></if><else><text text="GLOBAL_is_default"></text></else></cell><cell url="var:select_url"><if present="select_url"><text text="GLOBAL_select"></text></if><else><text text="GLOBAL_selected"></text></else></cell></row><set var="select_url"></set><set var="default_url"></set></list></table></window></dummy></output>+ \ No newline at end of file diff --git a/themes/default/templates/projectlist/show.tpl.src.xml b/themes/default/templates/projectlist/show.tpl.src.xml @@ -0,0 +1,3 @@ +<output xmlns="http://www.openrat.de/template" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"><dummy><window icon="project" name="GLOBAL_PROJECTS" width="70%"><table><row class="headline"><cell><text key="name"></text></cell><cell><text key="GLOBAL_SELECT"></text></cell></row><list list="el" extract="true"><row class="data"><cell url="var:url"><image file="icon_project"></image><text value="var:name" maxlength="30"></text></cell><cell url="var:use_url"><text key="GLOBAL_SELECT"></text></cell></row></list></table></window></dummy></output>+ \ No newline at end of file diff --git a/themes/default/templates/templatelist/show.tpl.src.xml b/themes/default/templates/templatelist/show.tpl.src.xml @@ -0,0 +1,28 @@ +<output xmlns="http://www.openrat.de/template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"> + <header views="add"></header> + <dummy> + <window name="GLOBAL_TEMPLATES"> + <table> + <row class="headline"> + <cell> + <text key="name"></text> + </cell> + </row> + <list list="templates" extract="true"> + <row class="data"> + <cell url="var:url"> + <text var="name"></text> + </cell> + </row> + </list> + </table> + <if empty="templates"> + <text text="GLOBAL_NO_TEMPLATES_AVAILABLE_DESC"></text> + </if> + <link class="action" action="template" subaction="add"> + <text key="menu_template_add"></text> + </link> + </window> + </dummy> +</output>+ \ No newline at end of file diff --git a/themes/default/templates/userlist/show.tpl.src.xml b/themes/default/templates/userlist/show.tpl.src.xml @@ -0,0 +1,3 @@ +<output xmlns="http://www.openrat.de/template" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.openrat.de/template ../template.xsd"><dummy><window icon="user" name="GLOBAL_USERS" width="70%"><table><row class="headline"><cell><image type="user"></image><text key="name"></text></cell><cell><text raw=""></text></cell><cell><text key="LOGIN"></text></cell></row><list list="el" extract="true"><row class="data"><cell url="var:url"><image type="user"></image><text var="name"></text></cell><cell url="var:url"><text value="var:fullname"></text><if true="var:isAdmin"><text raw="_("></text><text key="USER_ADMIN"></text><text raw=")"></text></if></cell><cell><link target="_top" action="index" subaction="switchuser" id="var:userid"><text key="LOGIN"></text></link></cell></row></list></table></window></dummy></output>+ \ No newline at end of file diff --git a/util/AdministrationTree.class.php b/util/AdministrationTree.class.php @@ -58,8 +58,8 @@ class AdministrationTree extends AbstractTree $treeElement->id = 0; $treeElement->text = lang('GLOBAL_PROJECTS'); $treeElement->description = lang('GLOBAL_PROJECTS'); - $treeElement->url = Html::url('project','listing',0,array(REQ_PARAM_TARGET=>'content')); - $treeElement->action = 'project'; + $treeElement->url = Html::url('projectlist','show',0,array(REQ_PARAM_TARGET=>'content')); + $treeElement->action = 'projectlist'; $treeElement->icon = 'project_list'; $treeElement->type = 'projects'; $treeElement->target = 'cms_main'; @@ -114,7 +114,7 @@ class AdministrationTree extends AbstractTree $treeElement->text = lang('GLOBAL_USER'); $treeElement->description = lang('GLOBAL_USER'); $treeElement->url = Html::url('user','listing',0,array(REQ_PARAM_TARGET=>'content')); - $treeElement->action = 'user'; + $treeElement->action = 'userlist'; $treeElement->icon = 'user_list'; $treeElement->target = 'cms_main'; $treeElement->type = 'users'; @@ -125,7 +125,7 @@ class AdministrationTree extends AbstractTree $treeElement->text = lang('GLOBAL_GROUPS'); $treeElement->description = lang('GLOBAL_GROUPS'); $treeElement->url = Html::url('group','listing',0,array(REQ_PARAM_TARGET=>'content')); - $treeElement->action = 'group'; + $treeElement->action = 'grouplist'; $treeElement->icon = 'user_list'; $treeElement->target = 'cms_main'; $treeElement->type = 'groups'; diff --git a/util/ProjectTree.class.php b/util/ProjectTree.class.php @@ -285,7 +285,7 @@ class ProjectTree extends AbstractTree $treeElement->url = Html::url('template','listing',0,array(REQ_PARAM_TARGETSUBACTION=>'listing',REQ_PARAM_TARGET=>'content')); $treeElement->description= lang('GLOBAL_TEMPLATES_DESC'); $treeElement->icon = 'template_list'; - $treeElement->action = 'template'; + $treeElement->action = 'templatelist'; $treeElement->target = 'content'; $treeElement->type = 'templates'; $this->addTreeElement( $treeElement ); @@ -296,7 +296,7 @@ class ProjectTree extends AbstractTree $treeElement = new TreeElement(); $treeElement->description= ''; $treeElement->id = 0; - $treeElement->action = 'language'; + $treeElement->action = 'languagelist'; $treeElement->text = lang('GLOBAL_LANGUAGES'); $treeElement->url = Html::url('language','listing',0,array(REQ_PARAM_TARGETSUBACTION=>'listing',REQ_PARAM_TARGET=>'content')); $treeElement->icon = 'language_list'; @@ -322,7 +322,7 @@ class ProjectTree extends AbstractTree $treeElement->description= lang('GLOBAL_MODELS_DESC'); $treeElement->text = lang('GLOBAL_MODELS'); $treeElement->url = Html::url('model','listing',0,array(REQ_PARAM_TARGETSUBACTION=>'listing',REQ_PARAM_TARGET=>'content')); - $treeElement->action = 'model'; + $treeElement->action = 'modellist'; $treeElement->icon = 'model_list'; $treeElement->target = 'content'; $this->addTreeElement( $treeElement );