diff --git a/etemplate/doc/et_media/index.php b/etemplate/doc/et_media/index.php index a0073658a4..04d24e3e65 100644 --- a/etemplate/doc/et_media/index.php +++ b/etemplate/doc/et_media/index.php @@ -1,4 +1,17 @@ * + * -------------------------------------------- * + * 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. * + \**************************************************************************/ + + /* $Id$ */ + $GLOBALS['phpgw_info']['flags'] = array( 'currentapp' => 'et_media', 'noheader' => True, @@ -6,8 +19,5 @@ ); include('../header.inc.php'); - $et_media = CreateObject('et_media.et_media'); - - $et_media->edit(); - - $GLOBALS['phpgw']->common->phpgw_footer(); + header('Location: '.$GLOBALS['phpgw']->link('/index.php','menuaction=et_media.et_media.edit')); + $GLOBALS['phpgw']->common->phpgw_exit(); diff --git a/etemplate/doc/etemplate.html b/etemplate/doc/etemplate.html index cda73c689c..7a4e9df7cf 100644 --- a/etemplate/doc/etemplate.html +++ b/etemplate/doc/etemplate.html @@ -143,11 +143,8 @@ Create the file /et_media/index.php with the following content:

); include('../header.inc.php'); - $et_media = CreateObject('et_media.et_media'); - - $et_media->edit(); - - $GLOBALS['phpgw']->common->phpgw_footer(); + header('Location: '.$GLOBALS['phpgw']->link('/index.php','menuaction=et_media.et_media.edit')); + $GLOBALS['phpgw']->common->phpgw_exit();

7. the code of class.et_media.inc.php