Author: ralfbecker
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
— 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;
/**
-
$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.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
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs