summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-01-31 00:17:56 +0100
committerMichael Tänzer <neo@nhng.de>2012-01-31 00:17:56 +0100
commit9fa31f772b6f054ef5574330e07f722b130fed17 (patch)
tree924bfae65a7e3cd00608dd866b6eba11004869ad /scripts
parent36feba365b50a5b30110d63fb0f3347b1c3485a7 (diff)
downloadcacert-devel-9fa31f772b6f054ef5574330e07f722b130fed17.tar.gz
cacert-devel-9fa31f772b6f054ef5574330e07f722b130fed17.tar.xz
cacert-devel-9fa31f772b6f054ef5574330e07f722b130fed17.zip
bug 1004: Make script resilient against working directory changes
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cron/refresh_stats.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cron/refresh_stats.php b/scripts/cron/refresh_stats.php
index 126a90d..6ad5e64 100755
--- a/scripts/cron/refresh_stats.php
+++ b/scripts/cron/refresh_stats.php
@@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-require_once('../../includes/mysql.php');
+require_once(dirname(__FILE__).'/../../includes/mysql.php');
/**
* Wrapper around mysql_query() to provide some error handling. Prints an error