From 5938f993a966603ee92aa2e85a1c1a351ff30bae Mon Sep 17 00:00:00 2001 From: Indieteq Date: Fri, 18 Oct 2013 18:26:33 +0200 Subject: Fixed relative path problem It's now possible to require the easyCRUD class file from any file from any folder. --- easyCRUD/easyCRUD.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easyCRUD/easyCRUD.class.php b/easyCRUD/easyCRUD.class.php index 5e21bbe..2033b15 100644 --- a/easyCRUD/easyCRUD.class.php +++ b/easyCRUD/easyCRUD.class.php @@ -5,7 +5,7 @@ * @author Author: Vivek Wicky Aswal. (https://twitter.com/#!/VivekWickyAswal) * @version 0.1a */ -require_once("../Db.class.php"); +require_once(__DIR__ . '/../Db.class.php'); class Crud { private $db; -- cgit v1.1