[eGroupWare-svn] r55802 - /trunk/jdots/inc/class.jdots_framework.inc.php

[email protected]
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: ralfbecker
Date: Thu Apr 21 18:40:31 2016
New Revision: 55802

URL: http://svn.stylite.de/viewvc/egroupware?rev=55802&view=rev
Log:
move admin >> Site config to new et2 based site-config

Modified:
    trunk/jdots/inc/class.jdots_framework.inc.php

Modified: trunk/jdots/inc/class.jdots_framework.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/jdots/inc/class.jdots_framework.inc.php?rev=55802&r1=55801&r2=55802&view=diff
==============================================================================
--- trunk/jdots/inc/class.jdots_framework.inc.php (original)
+++ trunk/jdots/inc/class.jdots_framework.inc.php Thu Apr 21 18:40:31 2016
@@ -256,7 +256,7 @@
 		// the instanciation of the template has to be here and not in the constructor,
 		// as the old Template class has problems if restored from the session (php-restore)
 		// todo: check if this is still true
-		$this->tpl = new Template(EGW_SERVER_ROOT.$this->template_dir);
+		$this->tpl = new Api\Framework\Template(EGW_SERVER_ROOT.$this->template_dir);
 		if (Api\Header\UserAgent::mobile() || $GLOBALS['egw_info']['user']['preferences']['common']['theme'] == 'mobile')
 		{
 			$this->tpl->set_file(array('_head' => 'head_mobile.tpl'));
@@ -1092,35 +1092,8 @@
 	/**
 	 * Apps available for mobile, if admin did not configured something else
 	 * (needs to kept in sync with list in phpgwapi/js/framework/fw_mobile.js!)
+	 *
+	 * Constant is read by admin_hooks::config to set default for fw_mobile_app_list.
 	 */
 	const DEFAULT_MOBILE_APPS = 'calendar,infolog,timesheet,resources,addressbook,projectmanager,tracker,mail,filemanager';
-
-	/**
-	 * Enabled applications on mobile
-	 *
-	 * Generates input field and set values on site configuration for list of enabled
-	 * applications on mobile theme.
-	 *
-	 * @param array $config
-	 * @return string return DOM string for input field
-	 */
-	static function mobile_app_list($config)
-	{
-		$value = $config['fw_mobile_app_list'] ? $config['fw_mobile_app_list'] :
-			explode(',', self::DEFAULT_MOBILE_APPS);
-
-		$apps = array();
-		foreach ($GLOBALS['egw_info']['apps'] as $app => $data)
-		{
-			if (!$data['enabled'] || !$data['status'] || $data['status'] == 3)
-			{
-				continue;	// app not enabled (user can not have run rights for these apps)
-			}
-			$apps[$app] = lang($app);
-		}
-		natcasesort($apps);
-
-		return Api\Html::select('newsettings[fw_mobile_app_list]', $value,
-			$apps, true, '', 5, true);
-	}
 }


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.