aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/add_index
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/add_index')
-rw-r--r--plugins/add_index/main.admin.inc.php4
-rw-r--r--plugins/add_index/main.normal.inc.php2
2 files changed, 2 insertions, 4 deletions
diff --git a/plugins/add_index/main.admin.inc.php b/plugins/add_index/main.admin.inc.php
index 2b56b08a5..0e1876b29 100644
--- a/plugins/add_index/main.admin.inc.php
+++ b/plugins/add_index/main.admin.inc.php
@@ -50,9 +50,7 @@ class AdminAddIndex extends AddIndex
function loading_lang()
{
- global $lang;
-
- include(get_language_filepath('plugin.lang.php', $this->path));
+ load_language('plugin.lang', $this->path);
}
function get_admin_advanced_features_links($advanced_features)
diff --git a/plugins/add_index/main.normal.inc.php b/plugins/add_index/main.normal.inc.php
index 9f3a0cc0c..8ebe10d9e 100644
--- a/plugins/add_index/main.normal.inc.php
+++ b/plugins/add_index/main.normal.inc.php
@@ -36,7 +36,7 @@ class NormalAddIndex extends AddIndex
if (in_array($page, array('advanced_feature', 'site_manager')))
{
$help_content =
- @file_get_contents(get_language_filepath('help/'.$page.'.html', $this->path));
+ load_language('help/'.$page.'.html', $this->path, '', true);
}
else
{