diff options
author | Michael Tänzer <neo@nhng.de> | 2012-01-31 00:15:17 +0100 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2012-01-31 00:15:17 +0100 |
commit | b8b737768aa96deeffbb193682c1b45f517c0636 (patch) | |
tree | 4d30181c211da0beacfe3eceadcf9b99387caa16 /scripts/cron/updatesort.php | |
parent | ccc8fb0f47871f2b8248c108d8e73e0da93cd8dc (diff) | |
download | cacert-devel-b8b737768aa96deeffbb193682c1b45f517c0636.tar.gz cacert-devel-b8b737768aa96deeffbb193682c1b45f517c0636.tar.xz cacert-devel-b8b737768aa96deeffbb193682c1b45f517c0636.zip |
bug 1003: Make scripts resilient against working directory changes and
make the fail hard if the include fails
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'scripts/cron/updatesort.php')
-rwxr-xr-x | scripts/cron/updatesort.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cron/updatesort.php b/scripts/cron/updatesort.php index ec4f408..aa20b09 100755 --- a/scripts/cron/updatesort.php +++ b/scripts/cron/updatesort.php @@ -16,7 +16,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ - include_once("../../includes/mysql.php"); + require_once(dirname(__FILE__).'/../../includes/mysql.php'); |