Changeset 8722 for trunk/plugins


Ignore:
Timestamp:
Jan 17, 2011, 7:48:13 PM (13 years ago)
Author:
plg
Message:

feature 2112 added: ability to set an additional local directory
$conflocal_dir_site in local/config/multisite.inc.php

Location:
trunk/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/LocalFilesEditor/admin.php

    r8126 r8722  
    131131{
    132132  case 'localconf':
    133     $edited_file = PHPWG_ROOT_PATH . "local/config/config.inc.php";
     133    $edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . "config/config.inc.php";
    134134    $content_file = file_exists($edited_file) ?
    135135      file_get_contents($edited_file) : $new_file['localconf'];
     
    146146    $options[] = l10n('locfiledit_choose_file');
    147147    $options[] = '----------------------';
    148     $value = PHPWG_ROOT_PATH . "local/css/rules.css";
     148    $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . "css/rules.css";
    149149    $options[$value] = 'local / css / rules.css';
    150150    if ($edited_file == $value) $selected = $value;
     
    153153    foreach (get_dirs($conf['themes_dir']) as $theme_id)
    154154    {
    155       $value = PHPWG_ROOT_PATH . 'local/css/'.$theme_id.'-rules.css';
     155      $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . 'css/'.$theme_id.'-rules.css';
    156156      $options[$value] = 'local / css / '.$theme_id.'-rules.css';
    157157      if ($edited_file == $value) $selected = $value;
     
    248248    foreach (get_languages() as $language_code => $language_name)
    249249    {
    250       $value = PHPWG_ROOT_PATH.'local/language/'.$language_code.'.lang.php';
     250      $value = PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'language/'.$language_code.'.lang.php';
    251251      if ($edited_file == $value)
    252252      {
  • trunk/plugins/language_switch/language_switch.inc.php

    r5845 r8722  
    5050    if ( $same !== $user['language']) {
    5151      load_language('common.lang', '', array('language'=>$user['language']) );
    52       load_language('lang', PHPWG_ROOT_PATH.'local/',
     52      load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR,
    5353        array('language'=>$user['language'], 'no_fallback'=>true, 'local'=>true)
    5454      );
Note: See TracChangeset for help on using the changeset viewer.