Revision: 18588
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=18588
Author: maat
Date: 2008-06-03 12:22:18 +0000 (Tue, 03 Jun 2008)
Log Message:
-----------
fix: use also ged common functions for get_var
Modified Paths:
--------------
trunk/ged/inc/class.ged_admin.inc.php
Modified: trunk/ged/inc/class.ged_admin.inc.php
===================================================================
--- trunk/ged/inc/class.ged_admin.inc.php 2008-06-02 15:08:58 UTC (rev
18587)
+++ trunk/ged/inc/class.ged_admin.inc.php 2008-06-03 12:22:18 UTC (rev
18588)
@@ -11,6 +11,8 @@
* option) any later version
***************************************************************************/
+include_once ( 'ged_common_functions.inc.php');
+
class ged_admin
{
@@ -44,18 +46,11 @@
$GLOBALS['phpgw']->css->validate_file('default','ged');
}
- // wrapper to use new phpgw::$this->get_var if it exists
- // and old $this->get_var otherwise
+ // wrapper to use new phpgw::get_var if it exists
+ // and old get_var otherwise
function get_var($varname,$method=null,$default=null)
{
- if ( is_callable(array('phpgw', 'get_var')))
- {
- return phpgw::get_var($varname,$method,$default);
- }
- else
- {
- return get_var($varname,$method, $default);
- }
+ return ged_get_var($varname,$method, $default);
}
function display_app_header()
_______________________________________________
phpGroupWare-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs