update v1.0.3.5

This commit is contained in:
sujitprasad
2015-12-29 11:05:21 +05:30
parent 828b75f9ec
commit 308be859ae
19 changed files with 828 additions and 115 deletions

View File

@@ -454,13 +454,13 @@ class SettingsController extends Controller {
$faveoconfig = config_path() . '/plugins/' . $filename . '.php';
if ($faveoconfig) {
copy($config, $faveoconfig);
//copy($config, $faveoconfig);
/**
* write provider list in app.php line 128
*/
$app = base_path() . '/config/app.php';
$str = "\n\n\t\t\t'App\\Plugins\\$filename" . "\\ServiceProvider',";
$line_i_am_looking_for = 128;
$line_i_am_looking_for = 144;
$lines = file($app, FILE_IGNORE_NEW_LINES);
$lines[$line_i_am_looking_for] = $str;
file_put_contents($app, implode("\n", $lines));
@@ -602,7 +602,7 @@ class SettingsController extends Controller {
$app = base_path() . '/config/app.php';
$str = "'App\\Plugins\\$slug" . "\\ServiceProvider',";
$line_i_am_looking_for = 128;
$line_i_am_looking_for = 144;
$lines = file($app, FILE_IGNORE_NEW_LINES);
$lines[$line_i_am_looking_for] = $str;
file_put_contents($app, implode("\n", $lines));