mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 00:09:13 +01:00
an other little fix to have old etemplate editor work with etemplate2
This commit is contained in:
parent
0ae151e638
commit
f8498ca949
@ -11,13 +11,6 @@
|
|||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// to be able to run with new etemplate enabled or not
|
|
||||||
require_once EGW_INCLUDE_ROOT.'/etemplate/inc/class.etemplate.inc.php';
|
|
||||||
if (!class_exists('etemplate_old'))
|
|
||||||
{
|
|
||||||
class etemplate_old extends etemplate {}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* template editor of the eTemplate package
|
* template editor of the eTemplate package
|
||||||
*/
|
*/
|
||||||
@ -1158,7 +1151,7 @@ class editor
|
|||||||
/**
|
/**
|
||||||
* edit dialog for a widget
|
* edit dialog for a widget
|
||||||
*
|
*
|
||||||
* @param array $content the submitted content of the etemplate::exec function, default null
|
* @param array $content the submitted content of the etemplate_old::exec function, default null
|
||||||
* @param string $msg msg to display, default ''
|
* @param string $msg msg to display, default ''
|
||||||
*/
|
*/
|
||||||
function widget($content=null,$msg='')
|
function widget($content=null,$msg='')
|
||||||
@ -1325,7 +1318,7 @@ class editor
|
|||||||
$this->fix_set_onclick($widget,$content['cell'],true);
|
$this->fix_set_onclick($widget,$content['cell'],true);
|
||||||
$this->fix_set_onchange($widget,$content['cell'],true);
|
$this->fix_set_onchange($widget,$content['cell'],true);
|
||||||
|
|
||||||
foreach(etemplate::$db_key_cols as $var)
|
foreach(boetemplate::$db_key_cols as $var)
|
||||||
{
|
{
|
||||||
if (isset($_GET[$var]))
|
if (isset($_GET[$var]))
|
||||||
{
|
{
|
||||||
@ -1445,7 +1438,7 @@ class editor
|
|||||||
/**
|
/**
|
||||||
* edit dialog for the styles of a templat or app
|
* edit dialog for the styles of a templat or app
|
||||||
*
|
*
|
||||||
* @param array $content the submitted content of the etemplate::exec function, default null
|
* @param array $content the submitted content of the etemplate_old::exec function, default null
|
||||||
* @param string $msg msg to display, default ''
|
* @param string $msg msg to display, default ''
|
||||||
*/
|
*/
|
||||||
function styles($content=null,$msg='')
|
function styles($content=null,$msg='')
|
||||||
|
Loading…
Reference in New Issue
Block a user