Commit da397796 by Paul Klimov

Check for console mode at "YiiRequirementChecker" has been simplified.

parent 99f757c6
...@@ -154,7 +154,7 @@ class YiiRequirementChecker ...@@ -154,7 +154,7 @@ class YiiRequirementChecker
$this->usageError('Nothing to render!'); $this->usageError('Nothing to render!');
} }
$baseViewFilePath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'views'; $baseViewFilePath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'views';
if (array_key_exists('argv', $_SERVER) && !empty($_SERVER['argv'])) { if (!empty($_SERVER['argv'])) {
$viewFileName = $baseViewFilePath . DIRECTORY_SEPARATOR . 'console' . DIRECTORY_SEPARATOR . 'index.php'; $viewFileName = $baseViewFilePath . DIRECTORY_SEPARATOR . 'console' . DIRECTORY_SEPARATOR . 'index.php';
} else { } else {
$viewFileName = $baseViewFilePath . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'index.php'; $viewFileName = $baseViewFilePath . DIRECTORY_SEPARATOR . 'web' . DIRECTORY_SEPARATOR . 'index.php';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment