aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/add_index
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-10-08 23:46:09 +0000
committerrvelices <rv-github@modusoptimus.com>2007-10-08 23:46:09 +0000
commit98b07a4a7fa1baff52800f70066f311768904430 (patch)
tree4bc89e8017f5fced16a6de6d4c8b37639caccff8 /plugins/add_index
parent5132cc1f87025bd17d6bd90e5ac8ad73288bf482 (diff)
- some code refactoring before upgrade to utf (only cosmetic at this point...)
git-svn-id: http://piwigo.org/svn/trunk@2126 68402e56-0260-453c-a942-63ccdbb3a9ee
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
{