Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-05-04 15:34:06 +0300
committerMichal Čihař <michal@cihar.com>2017-05-05 12:08:36 +0300
commit69da96b3e1ea45b4923f26aa357238d74f89b69f (patch)
treefd4e8f4563f5cc252f6f13aeb1a9a615183c14bc /index.php
parentae9006e9be518e5a739cb17d2543fdf7aacd572c (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.php11
1 files changed, 11 insertions, 0 deletions
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.
*