From 1cb00eb5806b4563ac64a758b7a5373837c1557d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 16 Jun 2014 13:19:07 +0000 Subject: [PATCH] for unknown apps eg. "/apps/InfoLog" use "filemanager" --- etemplate/thumbnail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/thumbnail.php b/etemplate/thumbnail.php index 36548f12a1..6697cd289a 100644 --- a/etemplate/thumbnail.php +++ b/etemplate/thumbnail.php @@ -44,7 +44,7 @@ function get_srcfile() } else { - $g_srcfile = egw_link::vfs_path($_GET['app'], $_GET['id'], $_GET['file'], true); + $g_srcfile = egw_link::vfs_path($_GET['app'], $_GET['id'], $_GET['file'], true); } return egw_vfs::PREFIX.$g_srcfile; @@ -62,7 +62,7 @@ function get_app() elseif (isset($_GET['path'])) { list(, $apps, $app) = explode('/', $_GET['path']); - if ($apps !== 'apps') + if ($apps !== 'apps' || !isset($GLOBALS['egw_info']['user']['apps'][$app])) { $app = 'filemanager'; }