Replaced __DIR__ with dirname(__FILE__). __DIR__ is PHP 5.3 and above.