aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-01-17 18:48:13 +0000
committerplegall <plg@piwigo.org>2011-01-17 18:48:13 +0000
commit8ccd3a203d407f549cd8697a5fa66181e90d9871 (patch)
tree5d0e203c02905f157316683aa0bc75126fb5f171 /plugins
parent91fc33dc8eea8bfd38f36f34c1abaa389b7e92e5 (diff)
feature 2112 added: ability to set an additional local directory
$conf['local_dir_site'] in local/config/multisite.inc.php git-svn-id: http://piwigo.org/svn/trunk@8722 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'plugins')
-rw-r--r--plugins/LocalFilesEditor/admin.php8
-rw-r--r--plugins/language_switch/language_switch.inc.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/LocalFilesEditor/admin.php b/plugins/LocalFilesEditor/admin.php
index 7d32ad061..236b6aa9c 100644
--- a/plugins/LocalFilesEditor/admin.php
+++ b/plugins/LocalFilesEditor/admin.php
@@ -130,7 +130,7 @@ if (isset($_POST['create_tpl']))
switch ($page['tab'])
{
case 'localconf':
- $edited_file = PHPWG_ROOT_PATH . "local/config/config.inc.php";
+ $edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . "config/config.inc.php";
$content_file = file_exists($edited_file) ?
file_get_contents($edited_file) : $new_file['localconf'];
@@ -145,14 +145,14 @@ switch ($page['tab'])
$selected = 0;
$options[] = l10n('locfiledit_choose_file');
$options[] = '----------------------';
- $value = PHPWG_ROOT_PATH . "local/css/rules.css";
+ $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . "css/rules.css";
$options[$value] = 'local / css / rules.css';
if ($edited_file == $value) $selected = $value;
$options[] = '----------------------';
foreach (get_dirs($conf['themes_dir']) as $theme_id)
{
- $value = PHPWG_ROOT_PATH . 'local/css/'.$theme_id.'-rules.css';
+ $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . 'css/'.$theme_id.'-rules.css';
$options[$value] = 'local / css / '.$theme_id.'-rules.css';
if ($edited_file == $value) $selected = $value;
}
@@ -247,7 +247,7 @@ switch ($page['tab'])
$options[] = '----------------------';
foreach (get_languages() as $language_code => $language_name)
{
- $value = PHPWG_ROOT_PATH.'local/language/'.$language_code.'.lang.php';
+ $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'language/'.$language_code.'.lang.php';
if ($edited_file == $value)
{
$selected = $value;
diff --git a/plugins/language_switch/language_switch.inc.php b/plugins/language_switch/language_switch.inc.php
index 500e07d91..9e9a3ca56 100644
--- a/plugins/language_switch/language_switch.inc.php
+++ b/plugins/language_switch/language_switch.inc.php
@@ -49,7 +49,7 @@ class language_controler {
// Reload language only if it isn't the same one
if ( $same !== $user['language']) {
load_language('common.lang', '', array('language'=>$user['language']) );
- load_language('lang', PHPWG_ROOT_PATH.'local/',
+ load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR,
array('language'=>$user['language'], 'no_fallback'=>true, 'local'=>true)
);
if (defined('IN_ADMIN') and IN_ADMIN) { // Never currently