[eGroupWare-svn] r55825 - in /trunk/filemanager: inc/class.filemanager_hooks.inc.php templates/default/config.tpl

[email protected]
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: ralfbecker
Date: Mon Apr 25 12:58:05 2016
New Revision: 55825

URL: http://svn.stylite.de/viewvc/egroupware?rev=55825&view=rev
Log:
remove number of links in settings config, as we have favorites now

Removed:
    trunk/filemanager/templates/default/config.tpl
Modified:
    trunk/filemanager/inc/class.filemanager_hooks.inc.php

Modified: trunk/filemanager/inc/class.filemanager_hooks.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/filemanager/inc/class.filemanager_hooks.inc.php?rev=55825&r1=55824&r2=55825&view=diff
==============================================================================
--- trunk/filemanager/inc/class.filemanager_hooks.inc.php (original)
+++ trunk/filemanager/inc/class.filemanager_hooks.inc.php Mon Apr 25 12:58:05 2016
@@ -15,7 +15,6 @@
 class filemanager_hooks
 {
 	static $appname = 'filemanager';
-	static $foldercount = 1;
 
 	/**
 	 * Data for Filemanagers sidebox menu
@@ -32,8 +31,6 @@
 		$basepath = '/home';
 		$homepath = '/home/'.$GLOBALS['egw_info']['user']['account_lid'];
 		//echo "<p>admin_prefs_sidebox_hooks::all_hooks(".print_r($args,True).") appname='$appname', location='$location'</p>\n";
-		$config = config::read(self::$appname);
-		if (!empty($config['max_folderlinks'])) self::$foldercount = (int)$config['max_folderlinks'];
 		$file_prefs    = &$GLOBALS['egw_info']['user']['preferences'][self::$appname];
 		if ($location == 'sidebox_menu')
 		{
@@ -75,19 +72,9 @@
 			{
 				$file['Basedirectory'] = egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$rootpath,'ajax'=>'true'));
 			}
-			if (!empty($file_prefs['startfolder'])) $file['Startfolder']= egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$file_prefs['startfolder'],'ajax'=>'true'));
-			for ($i=1; $i<=self::$foldercount; $i++)
-			{
-				if (!empty($file_prefs['folderlink'.$i]))
-				{
-					$foldername = array_pop(explode('/',$file_prefs['folderlink'.$i]));
-					$file[lang('Link %1: %2',$i,$foldername)]= egw::link('/index.php',array(
-						'menuaction' => self::$appname.'.filemanager_ui.index',
-						'path'       => $file_prefs['folderlink'.$i],
-						'nolang'     => true,
-						'ajax'       => 'true'
-					));
-				}
+			if (!empty($file_prefs['startfolder']))
+			{
+				$file['Startfolder']= egw::link('/index.php',array('menuaction'=>self::$appname.'.filemanager_ui.index','path'=>$file_prefs['startfolder'],'ajax'=>'true'));
 			}
 			$file['Placeholders'] = egw::link('/index.php','menuaction=filemanager.filemanager_merge.show_replacements');
 			$file['Shared files'] = egw::link('/index.php','menuaction=filemanager.filemanager_shares.index&ajax=true');
@@ -106,7 +93,7 @@
 		if (is_array($location)) $location = $location['location'];
 
 		$file = Array(
-			'Site Configuration' => egw::link('/index.php','menuaction=admin.uiconfig.index&appname='.self::$appname),
+			//'Site Configuration' => egw::link('/index.php','menuaction=admin.admin_config.index&appname='.self::$appname.'&ajax=true'),
 			'Custom fields' => egw::link('/index.php','menuaction=admin.customfields.index&appname='.self::$appname.'&ajax=true'),
 			'Check virtual filesystem' => egw::link('/index.php','menuaction=filemanager.filemanager_admin.fsck'),
 			'VFS mounts and versioning' => egw::link('/index.php', 'menuaction=filemanager.filemanager_admin.index'),
@@ -147,19 +134,6 @@
 				'admin'		=> False,
 			),
 		);
-		for ($i=1; $i <= self::$foldercount; $i++)
-		{
-			$settings['folderlink'.$i]	= array(
-				'type'		=> 'input',
-				'name'		=> 'folderlink'.$i,
-				'size'		=> 60,
-				'default'	=> '',
-				'label' 	=> lang('Enter the complete VFS path to specify a fast access link to a folder').' ('.$i.').',
-				'run_lang'  => -1,	// -1 = no lang on label
-				'xmlrpc'	=> True,
-				'admin'		=> False
-			);
-		}
 
 		$settings += array(
 			'showbase'	=> array(


------------------------------------------------------------------------------
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.