diff --git a/bl-kernel/admin/themes/default/init.php b/bl-kernel/admin/themes/default/init.php
index 4cfe7091..bc67c0d9 100644
--- a/bl-kernel/admin/themes/default/init.php
+++ b/bl-kernel/admin/themes/default/init.php
@@ -205,11 +205,11 @@ class HTML {
public static function bluditCoverImage($coverImage="")
{
+ global $L;
+
// Javascript code
include(PATH_JS.'bludit-cover-image.js');
- global $L;
-
$style = '';
if(!empty($coverImage)) {
$style = 'background-image: url('.HTML_PATH_UPLOADS_THUMBNAILS.$coverImage.')';
@@ -263,11 +263,11 @@ class HTML {
public static function bluditImagesV8()
{
+ global $L;
+
// Javascript code
include(PATH_JS.'bludit-images-v8.js');
- global $L;
-
$html = '';
$html .= '
diff --git a/bl-kernel/js/bludit-cover-image.js b/bl-kernel/js/bludit-cover-image.js
index 4738cfb8..fef06ebc 100644
--- a/bl-kernel/js/bludit-cover-image.js
+++ b/bl-kernel/js/bludit-cover-image.js
@@ -85,7 +85,7 @@ $(document).ready(function() {
},
notallowed: function(file, settings) {
- alert("'.$L->g('Supported image file types').' "+settings.allow);
+ alert("g('error').'. '.$L->g('Supported image file types')?>: "+settings.allow);
}
};
diff --git a/bl-kernel/js/bludit-images-v8.js b/bl-kernel/js/bludit-images-v8.js
index 4810becb..a6b9f9ec 100644
--- a/bl-kernel/js/bludit-images-v8.js
+++ b/bl-kernel/js/bludit-images-v8.js
@@ -58,7 +58,7 @@ $(document).ready(function() {
},
notallowed: function(file, settings) {
- alert("'.$L->g('Supported image file types').' "+settings.allow);
+ alert("g('error').'. '.$L->g('Supported image file types')?>: "+settings.allow);
}
};