Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Oct 7, 2019
1 parent 41dd64d commit 90803b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Think.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function fetch(string $template, array $data = []): void
if (is_dir($this->app->getAppPath() . $view)) {
$path = $this->app->getAppPath() . $view . DIRECTORY_SEPARATOR;
} else {
$appName = $this->app['request']->app();
$appName = $this->app->http->getName();
$path = $this->app->getRootPath() . $view . DIRECTORY_SEPARATOR . ($appName ? $appName . DIRECTORY_SEPARATOR : '');
}

Expand Down

0 comments on commit 90803b7

Please sign in to comment.