Skip to content

Commit

Permalink
Load dynamic pages in root, fixes #231
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Feb 25, 2015
1 parent 2610847 commit 4e3596b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/create
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ try {
. $projectName);
chdir($projectName);
exec("rm -rf .git");
exec("~/.gt/composer.phar update");
passthru("~/.gt/composer.phar update");
$pwd = getcwd();

// Create new project with PHP.Gt in composer.json
Expand Down
2 changes: 1 addition & 1 deletion src/Dispatcher/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function getDynamicFilePath($uri) {
strrpos($searchDirectory, "/")
);

} while($searchDirectory !== $basePath);
} while($searchDirectory !== dirname($basePath));

return null;
}
Expand Down

0 comments on commit 4e3596b

Please sign in to comment.