Skip to content

Commit

Permalink
Merge pull request edmundask#3 from rogeriopradoj/patch-2
Browse files Browse the repository at this point in the history
Change __DIR__ to dirname(__FILE__) to avoid compatibility issues with PHP 5.2.4 and older versions.
  • Loading branch information
edmundask committed May 4, 2012
2 parents cb2c683 + 491b2fd commit be56859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Twiggy.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* @copyright Copyright (c) 2012 Edmundas Kondrašovas <[email protected]>
*/

if(!defined('TWIGGY_ROOT')) define('TWIGGY_ROOT', dirname(__DIR__));
if(!defined('TWIGGY_ROOT')) define('TWIGGY_ROOT', dirname(dirname(__FILE__)));

require_once(TWIGGY_ROOT . '/vendor/Twig/lib/Twig/Autoloader.php');
Twig_Autoloader::register();
Expand Down

0 comments on commit be56859

Please sign in to comment.