Skip to content

Commit

Permalink
Update Sample_Header.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pgee70 committed Dec 16, 2017
1 parent d250c1a commit fb4458e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion samples/Sample_Header.php
Expand Up @@ -26,10 +26,14 @@
require_once __DIR__ . '/../src/PhpPresentation/Autoloader.php';
Autoloader::register();

if (is_file('/../../../../vendor/autoload.php'))
if (is_file(__DIR__. '/../../../../vendor/autoload.php'))
{
require_once __DIR__ . '/../../../../vendor/autoload.php';
}
else
{
throw new Exception ('Can not find the vendor folder!');
}

// Set writers
$writers = array('PowerPoint2007' => 'pptx', 'ODPresentation' => 'odp');
Expand Down

0 comments on commit fb4458e

Please sign in to comment.