Commit 53194796 by Alexander Kochetov

[IMPORTANT] Path corrections

parent 85874dfd
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
// you may need to adjust this path to the correct Yii framework path // you may need to adjust this path to the correct Yii framework path
$frameworkPath = dirname(__FILE__) . '/vendor/yiisoft/yii2/yii'; $frameworkPath = dirname(__FILE__) . '/vendor/yiisoft/yii2';
if (!is_dir($frameworkPath)) { if (!is_dir($frameworkPath)) {
echo '<h1>Error</h1>'; echo '<h1>Error</h1>';
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
*/ */
// you may need to adjust this path to the correct Yii framework path // you may need to adjust this path to the correct Yii framework path
$frameworkPath = dirname(__FILE__) . '/vendor/yiisoft/yii2/yii'; $frameworkPath = dirname(__FILE__) . '/vendor/yiisoft/yii2';
if (!is_dir($frameworkPath)) { if (!is_dir($frameworkPath)) {
echo '<h1>Error</h1>'; echo '<h1>Error</h1>';
......
...@@ -188,7 +188,7 @@ class Installer extends LibraryInstaller ...@@ -188,7 +188,7 @@ class Installer extends LibraryInstaller
protected function linkBaseYiiFiles() protected function linkBaseYiiFiles()
{ {
$yiiDir = $this->vendorDir . '/yiisoft/yii2/yii'; $yiiDir = $this->vendorDir . '/yiisoft/yii2';
if (!file_exists($yiiDir)) { if (!file_exists($yiiDir)) {
mkdir($yiiDir, 0777, true); mkdir($yiiDir, 0777, true);
} }
...@@ -212,7 +212,7 @@ EOF ...@@ -212,7 +212,7 @@ EOF
protected function removeBaseYiiFiles() protected function removeBaseYiiFiles()
{ {
$yiiDir = $this->vendorDir . '/yiisoft/yii2/yii'; $yiiDir = $this->vendorDir . '/yiisoft/yii2';
foreach(['Yii.php', 'BaseYii.php', 'classes.php'] as $file) { foreach(['Yii.php', 'BaseYii.php', 'classes.php'] as $file) {
if (file_exists($yiiDir . '/' . $file)) { if (file_exists($yiiDir . '/' . $file)) {
unlink($yiiDir . '/' . $file); unlink($yiiDir . '/' . $file);
......
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