Joomler!.net - Decided on Joomla!

デル株式会社

Wiki or Wordpress? No it is JContentPlus.

Home » Blog » JoomlaXplorerのバージョンを1.6.2にした
Jan
22
2008

JoomlaXplorerのバージョンを1.6.2にした

EMailPrintPDF
1 votes
Written by:Joomler! 4006 hits

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

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からサイトの一つ上の階層を表示するように変更されたようです。以前から気になっていたのですが、バグかと思っていました。



 

ADD A COMMENT

Subject*
:
Color Swatch




Email Link Page Code Text Align Center Text Align Justify Text Align Left Text Align Right Text Bold Text Quote Text Italic Text List Bullets Text List Numbers Text Strikethrough Text Underline World Link
Sun Unhappy Smile Evilgrin Wink Tongue Lightning Surprised Grin Rain Clouds Cloudy Snow Waii
Name*
:
EMail*
:
Website
:

JContentPlus for Joomla!1.5 powered by Joomler!.net

デル株式会社

Related Items

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.