diff options
author | Derick Rethans <github@derickrethans.nl> | 2008-10-02 14:09:14 +0000 |
---|---|---|
committer | Derick Rethans <github@derickrethans.nl> | 2008-10-02 14:09:14 +0000 |
commit | b4c4098a50740048ff10dc868b3a81abd81c3148 (patch) | |
tree | c8662a53808b8b9795d83ac8ba913686ef0c316f /docs | |
parent | 0c5ab3e9bb12968e8b594f7144732bdc2b0236ed (diff) | |
download | zetacomponents-graph-b4c4098a50740048ff10dc868b3a81abd81c3148.zip zetacomponents-graph-b4c4098a50740048ff10dc868b3a81abd81c3148.tar.gz |
- Fixed issue #13658: tutorial_autoload.php fails under Windows.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/tutorial/tutorial_autoload.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial/tutorial_autoload.php b/docs/tutorial/tutorial_autoload.php index 8b197de..56e36e1 100644 --- a/docs/tutorial/tutorial_autoload.php +++ b/docs/tutorial/tutorial_autoload.php @@ -1,11 +1,11 @@ <?php -$dir = dirname( dirname( __FILE__ ) ); -$dirParts = explode( '/', $dir ); +$dir = dirname( __FILE__ ); +$dirParts = explode( DIRECTORY_SEPARATOR, $dir ); switch ( $dirParts[count( $dirParts ) - 3] ) { case 'doc': require_once 'ezc/Base/base.php'; break; // pear - case 'trunk': require_once "$dir/../../Base/src/base.php"; break; // svn - default: require_once "$dir/../../Base/src/base.php"; break; // bundle + case 'trunk': require_once "$dir/../../../Base/src/base.php"; break; // svn + default: require_once "$dir/../../../Base/src/base.php"; break; // bundle } /** |