You've already forked phpmyadmin
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:
@@ -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!'),
|
||||
|
||||
Reference in New Issue
Block a user