diff options
author | Michal Čihař <michal@cihar.com> | 2017-05-04 15:34:06 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-05-05 12:08:36 +0300 |
commit | 69da96b3e1ea45b4923f26aa357238d74f89b69f (patch) | |
tree | fd4e8f4563f5cc252f6f13aeb1a9a615183c14bc /index.php | |
parent | ae9006e9be518e5a739cb17d2543fdf7aacd572c (diff) |
Show warning if twig cache can not be used
Issue #13225
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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. * |