cvs: docweb /include/jpgraph jpgraph.php
| From: | Vincent Gevers | Date: | Thu, 05 Aug 2004 14:33:07 +0000 |
| Subject: | cvs: docweb /include/jpgraph jpgraph.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-131@lists.php.net to get a copy of this message | ||
vincent Thu Aug 5 10:33:07 2004 EDT
Modified files:
/docweb/include/jpgraph jpgraph.php
Log:
path fixes
# I've tested this, and it worked fine
http://cvs.php.net/diff.php/docweb/include/jpgraph/jpgraph.php?r1=1.1&r2=1.2&ty=u
Index: docweb/include/jpgraph/jpgraph.php
diff -u docweb/include/jpgraph/jpgraph.php:1.1 docweb/include/jpgraph/jpgraph.php:1.2
--- docweb/include/jpgraph/jpgraph.php:1.1 Wed Aug 4 13:14:55 2004
+++ docweb/include/jpgraph/jpgraph.php Thu Aug 5 10:33:07 2004
@@ -4,13 +4,13 @@
// Description: PHP4 Graph Plotting library. Base module.
// Created: 2001-01-08
// Author: Johan Persson (johanp@aditus.nu)
-// Ver: $Id: jpgraph.php,v 1.1 2004/08/04 17:14:55 goba Exp $
+// Ver: $Id: jpgraph.php,v 1.2 2004/08/05 14:33:07 vincent Exp $
//
// License: This code is released under QPL 1.0
// Copyright (C) 2001,2002,2003,2004 Johan Persson Aditus Consulting
//========================================================================
-require_once('/home/user/doc/include/jpgraph/jpg-config.inc');
+require_once(dirname(__FILE__) . '/jpg-config.inc');
// Version info
DEFINE('JPG_VERSION','1.14.1');
@@ -219,7 +219,7 @@
// Get hold of gradient class (In Version 2.x)
// A client of the library has to manually include this
//
-require_once '/home/user/doc/include/jpgraph/jpgraph_gradient.php';
+require_once dirname(__FILE__) . '/jpgraph_gradient.php';
//
@@ -1920,7 +1920,7 @@
// Should we do any final image transformation
if( $this->iImgTrans ) {
if( !class_exists('ImgTrans') ) {
- require_once('/home/user/doc/include/jpgraph/jpgraph_imgtrans.php');
+ require_once(dirname(__FILE__) . '/jpgraph_imgtrans.php');
//JpGraphError::Raise('In order to use image transformation you must
include the file jpgraph_imgtrans.php in your script.');
}