This is a patch for layersmenu-common.inc.php.
Since I wanted to have the script reside in
include\phplayersmenu-3.2.0\ I had some problems
moving the example-hormenu.php to another directory
(like the documentation suggested)
I modified the construcor of LayersMenuCommon, so that
it automatically finds the right path. This should now
always work, without any more user intervention.
$this->_packageName = 'PHP Layers Menu';
$this->version = '3.2.0-rc';
$this->copyright = '(C) 2001-2004';
$this->author = 'Marco Pratesi - http://www.
$this->prependedUrl = '';
/* dirname(__FILE__) gets the Directory of the
since we know, this is a library, we can cut of the
lib/ at the end (4 characters) */
$this->dirroot = substr(dirname(__FILE__),0,
/* The WWWroot for our files is the same as dirroot,
just without the document root.
We can simply cut of the right number of
characters from the front of the String */
$wwwroot = substr($this->dirroot,
$this->libjsdir = $this->dirroot . './libjs/';
$this->imgdir = $this->dirroot . 'menuimages/';
$this->imgwww = $wwwroot . 'menuimages/';
$this->icondir = $this->dirroot . 'menuicons/';
$this->iconwww = $wwwroot . 'menuicons/';
$this->tpldir = $this->dirroot . 'templates/';
Log in to post a comment.
Sign up for the SourceForge newsletter:No, thanks