FIX: dir should be folder name.

This commit is contained in:
Will Rossiter 2013-01-19 18:30:40 +13:00
parent 2185dda154
commit 649bb572e5

View File

@ -1,3 +1,6 @@
<?php
define('REPORTS_DIR', dirname(dirname(__FILE__)));
$path = explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
$dir = $path[count($path) - 1];
define('REPORTS_DIR', $dir);