Joomler!.net - Decided on Joomla!

デル株式会社

Wiki or Wordpress? No it is JContentPlus.

Home » Blog » conf.php
1 votes
Written by:Joomler! 5146 hits Tuesday, 22 January 2008 16:18

ついでにホームディレクトリが、デフォルトでは一つ上の階層になっているのを本来のホームに変更してみました。

Root/administrator/components/com_joomlaxplorer/config/conf.php

$dir_above = substr( $mosConfig_absolute_path, 0, strrpos( $mosConfig_absolute_path, $GLOBALS["separator"] ));
        if( !@is_readable($dir_above)) {
                $GLOBALS["home_dir"] = $mosConfig_absolute_path;
                // the url corresponding with the home directory: (no trailing '/')
                $GLOBALS["home_url"] = $mosConfig_live_site;
        }
        else {
                $GLOBALS["home_dir"] = $dir_above;
                // the url corresponding with the home directory: (no trailing '/')
                $GLOBALS["home_url"] = substr( $mosConfig_live_site, 0, strrpos($mosConfig_live_site, '/'));
        }

//       $dir_above = substr( $mosConfig_absolute_path, 0, strrpos( $mosConfig_absolute_path, $GLOBALS["separator"] ));
//      if( !@is_readable($dir_above)) {
                $GLOBALS["home_dir"] = $mosConfig_absolute_path;
                // the url corresponding with the home directory: (no trailing '/')
                $GLOBALS["home_url"] = $mosConfig_live_site;
//      }
//      else {
//              $GLOBALS["home_dir"] = $dir_above;
//              // the url corresponding with the home directory: (no trailing '/')
//              $GLOBALS["home_url"] = substr( $mosConfig_live_site, 0, strrpos($mosConfig_live_site, '/'));
//      }

のようにコメントアウトしただけです。

このコード上部に書かれているように1.3.0からサイトの一つ上の階層を表示するように変更されたようです。以前から気になっていたのですが、バグかと思っていました。



 

JContentPlus for Joomla!1.5 powered by Joomler!.net

joomler.net is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla!(R) name is used under a limited license from Open Source Matters in the United States and other countries.
joomler.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.