From 33b8cd82aa1f01c64daaf3b9c6e8a4e1387716e1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 24 Jul 2009 10:38:47 +0000 Subject: [PATCH] "- fixed typo phpgwpai (does not matter, as phpgwapi is searched anyway, if given app is not found) - php5 __construct() - using static common::find_image() - removed function available from php5.1 on, as that's the requirement anyway" --- phpgwapi/inc/class.jscalendar.inc.php | 29 +++++---------------------- 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/phpgwapi/inc/class.jscalendar.inc.php b/phpgwapi/inc/class.jscalendar.inc.php index e0ade483fc..16f4b7623b 100644 --- a/phpgwapi/inc/class.jscalendar.inc.php +++ b/phpgwapi/inc/class.jscalendar.inc.php @@ -5,6 +5,8 @@ * @link http://www.egroupware.org * @author Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @package api + * @subpackage html * @version $Id$ */ @@ -12,10 +14,6 @@ * Wrapper for the jsCalendar * * The constructor loads the necessary javascript-files. - * - * @package api - * @subpackage html - * @access public */ class jscalendar { @@ -39,7 +37,7 @@ class jscalendar * @param string $path='jscalendar' * @return jscalendar */ - function jscalendar($do_header=True,$path='jscalendar',$scriptreturn=false) + function __construct($do_header=True,$path='jscalendar',$scriptreturn=false) { $this->jscalendar_url = $GLOBALS['egw_info']['server']['webserver_url'].'/phpgwapi/js/'.$path; $this->dateformat = $GLOBALS['egw_info']['user']['preferences']['common']['dateformat']; @@ -108,7 +106,7 @@ class jscalendar if ($jsreturn) { $return_array = array( - 'html' => '', + 'html' => '', 'js' => 'Calendar.setup({inputField : "'.$name.'",button: "'.$name.'-trigger" });' ); @@ -117,7 +115,7 @@ class jscalendar return '