From 69da96b3e1ea45b4923f26aa357238d74f89b69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 4 May 2017 14:34:06 +0200 Subject: Show warning if twig cache can not be used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #13225 Signed-off-by: Michal Čihař --- index.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 25a0699904..2e8d62037c 100644 --- a/index.php +++ b/index.php @@ -601,6 +601,17 @@ if ($cfg['SuhosinDisableWarning'] == false ); } +/* Missing template cache */ +if (is_null($GLOBALS['PMA_Config']->getTempDir('twig'))) { + trigger_error( + sprintf( + __('The $cfg[\'TempDir\'] (%s) is not accessible. phpMyAdmin is not able to cache templates and will be slow because of this.'), + $GLOBALS['PMA_Config']->get('TempDir') + ), + E_USER_WARNING + ); +} + /** * Warning about incomplete translations. * -- cgit v1.2.3