diff --git a/bl-plugins/about/plugin.php b/bl-plugins/about/plugin.php
old mode 100644
new mode 100755
index bb3eccb1..3ef91ad4
--- a/bl-plugins/about/plugin.php
+++ b/bl-plugins/about/plugin.php
@@ -12,14 +12,12 @@ class pluginAbout extends Plugin {
public function form()
{
- global $Language;
-
$html = '
';
- $html .= ''.$Language->get('Plugin label').' ';
+ $html .= ''.$this->L('Plugin label').' ';
$html .= ' ';
$html .= '
';
$html .= '';
- $html .= ''.$Language->get('About').' ';
+ $html .= ''.$this->L('About').' ';
$html .= '';
$html .= '
';
diff --git a/bl-plugins/disqus/plugin.php b/bl-plugins/disqus/plugin.php
old mode 100644
new mode 100755
index d5861887..fe754b96
--- a/bl-plugins/disqus/plugin.php
+++ b/bl-plugins/disqus/plugin.php
@@ -36,29 +36,27 @@ class pluginDisqus extends Plugin {
public function form()
{
- global $Language;
-
$html = '';
- $html .= ''.$Language->get('Disqus shortname').' ';
+ $html .= ''.$this->L('Disqus shortname').' ';
$html .= ' ';
$html .= '
';
$html .= '';
$html .= ' ';
$html .= ' getDbField('enablePages')?'checked':'').'>';
- $html .= ''.$Language->get('Enable Disqus on pages').' ';
+ $html .= ''.$this->L('Enable Disqus on pages').' ';
$html .= '
';
$html .= '';
$html .= ' ';
$html .= ' getDbField('enablePosts')?'checked':'').'>';
- $html .= ''.$Language->get('Enable Disqus on posts').' ';
+ $html .= ''.$this->L('Enable Disqus on posts').' ';
$html .= '
';
$html .= '';
$html .= ' ';
$html .= ' getDbField('enableDefaultHomePage')?'checked':'').'>';
- $html .= ''.$Language->get('Enable Disqus on default home page').' ';
+ $html .= ''.$this->L('Enable Disqus on default home page').' ';
$html .= '
';
return $html;
diff --git a/bl-plugins/googletools/plugin.php b/bl-plugins/googletools/plugin.php
old mode 100644
new mode 100755
index 34c93996..0f4a5326
--- a/bl-plugins/googletools/plugin.php
+++ b/bl-plugins/googletools/plugin.php
@@ -12,18 +12,16 @@ class pluginGoogleTools extends Plugin {
public function form()
{
- global $Language;
-
$html = '';
- $html .= '
'.$Language->get('Google Webmasters tools').' ';
+ $html .= '
'.$this->L('Google Webmasters tools').' ';
$html .= '
';
- $html .= '
'.$Language->get('complete-this-field-with-the-google-site-verification').'
';
+ $html .= '
'.$this->L('complete-this-field-with-the-google-site-verification').'
';
$html .= '
';
$html .= '';
- $html .= '
'.$Language->get('Google Analytics Tracking ID').' ';
+ $html .= '
'.$this->L('Google Analytics Tracking ID').' ';
$html .= '
';
- $html .= '
'.$Language->get('complete-this-field-with-the-tracking-id').'
';
+ $html .= '
'.$this->L('complete-this-field-with-the-tracking-id').'
';
$html .= '
';
return $html;
diff --git a/bl-plugins/latest_posts/plugin.php b/bl-plugins/latest_posts/plugin.php
old mode 100644
new mode 100755
index d8dc1af5..190a1a4a
--- a/bl-plugins/latest_posts/plugin.php
+++ b/bl-plugins/latest_posts/plugin.php
@@ -12,15 +12,13 @@ class pluginLatestPosts extends Plugin {
public function form()
{
- global $Language;
-
$html = '';
- $html .= ''.$Language->get('Plugin label').' ';
+ $html .= ''.$this->L('Plugin label').' ';
$html .= ' ';
$html .= '
';
$html .= '';
- $html .= ''.$Language->get('Amount of posts').' ';
+ $html .= ''.$this->L('Amount of posts').' ';
$html .= ' ';
$html .= '
';
diff --git a/bl-plugins/maintenancemode/plugin.php b/bl-plugins/maintenancemode/plugin.php
old mode 100644
new mode 100755
index 5a36614e..b01e8603
--- a/bl-plugins/maintenancemode/plugin.php
+++ b/bl-plugins/maintenancemode/plugin.php
@@ -12,16 +12,14 @@ class pluginMaintenanceMode extends Plugin {
public function form()
{
- global $Language;
-
$html = '';
$html .= ' ';
$html .= ' getDbField('enable')?'checked':'').'>';
- $html .= ''.$Language->get('Enable maintenance mode').' ';
+ $html .= ''.$this->L('Enable maintenance mode').' ';
$html .= '
';
$html .= '';
- $html .= ''.$Language->get('Message').' ';
+ $html .= ''.$this->L('Message').' ';
$html .= ' ';
$html .= '
';
diff --git a/bl-plugins/pages/plugin.php b/bl-plugins/pages/plugin.php
old mode 100644
new mode 100755
index 16b84896..74a61c2c
--- a/bl-plugins/pages/plugin.php
+++ b/bl-plugins/pages/plugin.php
@@ -12,17 +12,15 @@ class pluginPages extends Plugin {
public function form()
{
- global $Language;
-
$html = '';
- $html .= ''.$Language->get('Plugin label').' ';
+ $html .= ''.$this->L('Plugin label').' ';
$html .= ' ';
$html .= '
';
$html .= '';
$html .= ' ';
$html .= ' getDbField('homeLink')?'checked':'').'>';
- $html .= ''.$Language->get('Show home link').' ';
+ $html .= ''.$this->L('Show home link').' ';
$html .= '
';
return $html;
@@ -30,7 +28,6 @@ class pluginPages extends Plugin {
public function siteSidebar()
{
- global $Language;
global $pagesParents;
global $Site, $Url;
@@ -48,7 +45,7 @@ class pluginPages extends Plugin {
// Show home link ?
if($this->getDbField('homeLink')) {
$html .= '';
- $html .= ''.$Language->get('Home').' ';
+ $html .= ''.$this->L('Home').' ';
$html .= ' ';
}
diff --git a/bl-plugins/simplemde/plugin.php b/bl-plugins/simplemde/plugin.php
old mode 100644
new mode 100755
index 5b976cfc..629ed84e
--- a/bl-plugins/simplemde/plugin.php
+++ b/bl-plugins/simplemde/plugin.php
@@ -20,22 +20,20 @@ class pluginsimpleMDE extends Plugin {
public function form()
{
- global $Language;
-
$html = '';
- $html .= ''.$Language->get('Toolbar').' ';
+ $html .= ''.$this->L('Toolbar').' ';
$html .= ' ';
$html .= '
';
$html .= '';
- $html .= ''.$Language->get('Tab size').' ';
+ $html .= ''.$this->L('Tab size').' ';
$html .= ' ';
$html .= '
';
$html .= '';
$html .= ' ';
$html .= ' getDbField('autosave')?'checked':'').'>';
- $html .= ''.$Language->get('Autosave').' ';
+ $html .= ''.$this->L('Autosave').' ';
$html .= '
';
return $html;
@@ -78,8 +76,6 @@ class pluginsimpleMDE extends Plugin {
public function adminBodyEnd()
{
global $layout;
- global $Language;
-
$html = '';
// Load CSS and JS only on Controllers in array.
@@ -109,7 +105,7 @@ class pluginsimpleMDE extends Plugin {
// This function is necesary on each Editor, it is used by Bludit Images v8.
$html .= 'function editorAddImage(filename) {
- addContentSimpleMDE("!['.$Language->get('Image description').']("+filename+")");
+ addContentSimpleMDE("!['.$this->L('Image description').']("+filename+")");
}'.PHP_EOL;
$html .= '$(document).ready(function() { '.PHP_EOL;
diff --git a/bl-plugins/tags/plugin.php b/bl-plugins/tags/plugin.php
old mode 100644
new mode 100755
index 978fbd64..3f7f4664
--- a/bl-plugins/tags/plugin.php
+++ b/bl-plugins/tags/plugin.php
@@ -12,23 +12,21 @@ class pluginTags extends Plugin {
public function form()
{
- global $Language;
-
$html = '';
- $html .= ''.$Language->get('Plugin label').' ';
+ $html .= ''.$this->L('Plugin label').' ';
$html .= ' ';
$html .= '
';
$html .= '';
- $html .= $Language->get('Sort the tag list by').': ';
+ $html .= $this->L('Sort the tag list by').': ';
foreach(array('alpha' => 'Alphabetical order',
'count' => 'Number of times each tag has been used',
'date' => 'Date each tag was first used') as $key=>$value) {
if ($key == $this->getDbField('sort')) {
- $html .= ''.$Language->get($value).' ';
+ $html .= ''.$this->L($value).' ';
} else {
- $html .= ''.$Language->get($value).' ';
+ $html .= ''.$this->L($value).' ';
}
}
$html .= ' ';
@@ -39,7 +37,6 @@ class pluginTags extends Plugin {
public function siteSidebar()
{
- global $Language;
global $dbTags;
global $Url;