1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-25 06:39:48 +03:00

Fix #16512 - Add some code securities when the themes folder does not exist

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes
2020-12-07 15:01:48 +01:00
parent 1cdb34de93
commit 35cdaf4356
8 changed files with 27 additions and 23 deletions

View File

@@ -28,6 +28,8 @@ final class JavaScriptMessagesController
{
global $cfg, $PMA_Theme;
$ajaxClockSmallGifPath = $PMA_Theme !== null ? $PMA_Theme->getImgPath('ajax_clock_small.gif') : '';
$this->messages = [
/* For confirmations */
'strConfirm' => __('Confirm'),
@@ -672,7 +674,7 @@ final class JavaScriptMessagesController
)
. '<br>'
. '<img src="'
. $PMA_Theme->getImgPath('ajax_clock_small.gif')
. $ajaxClockSmallGifPath
. '" width="16" height="16" alt="ajax clock">'
. '</div>',
'strCopyQueryButtonSuccess' => __('Successfully copied!'),