commit 86f6f4969f67363cd53f1e6c910da5c956c93817
parent ae292dd5c1ce5c0f91fa85767a1e2618522743be
Author: dankert <devnull@localhost>
Date: Tue, 28 Dec 2004 00:34:51 +0100
Aenderung Konstruktor
Diffstat:
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/actionClasses/TemplateAction.class.php b/actionClasses/TemplateAction.class.php
@@ -20,7 +20,10 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ---------------------------------------------------------------------------
// $Log$
-// Revision 1.7 2004-12-19 15:17:11 dankert
+// Revision 1.8 2004-12-27 23:34:51 dankert
+// Aenderung Konstruktor
+//
+// Revision 1.7 2004/12/19 15:17:11 dankert
// div. Korrekturen
//
// Revision 1.6 2004/12/15 23:25:13 dankert
@@ -59,12 +62,16 @@ class TemplateAction extends Action
function TemplateAction()
{
- if ( $this->getRequestId() == 0 )
- die('no template-id available');
-
- $this->template = new Template( $this->getRequestId() );
- $this->template->load();
- $this->setTemplateVar( 'templateid',$this->template->templateid );
+ if ( $this->getRequestId() != 0 )
+ {
+ $this->template = new Template( $this->getRequestId() );
+ $this->template->load();
+ $this->setTemplateVar( 'templateid',$this->template->templateid );
+ }
+ else
+ {
+ $this->defaultSubAction = 'listing';
+ }
if ( intval($this->getRequestVar('elementid')) != 0 )
{