Ticket #4 (closed bug: fixed)

Opened 1 year ago

Last modified 11 months ago

query.php: relative path error

Reported by: traffin Assigned to: armin
Priority: normal Milestone: release 3.2
Component: project Version: 3
Severity: normal Keywords:
Cc:

Description

I tried to include the file pmapper/incphp/query/query.php in a plugin. The problem is that the query.php try to include customlayers.php by using a relative path.

So there is an error due to bad path...

Correction in the joined file, line 40 -> 46.

Change History

02/11/08 09:35:43 changed by traffin

Well, I don't have rights for attachement (same as in the wiki !).

For bug correction, remove

include_once("../customlayers.php");

add replace with

include_once($_SESSION['PM_INCPHP'] . "/customlayers.php");

02/13/08 21:39:03 changed by armin

  • status changed from new to closed.
  • resolution set to fixed.

02/15/08 14:50:15 changed by traffin

Well, a better solution is

include_once(dirname(__FILE__) . "/../customlayers.php");