Update v1.0.7.8

This commit is contained in:
Sujit Prasad
2016-06-24 20:02:20 +05:30
parent 909ebb1895
commit 7ed92728a5
2 changed files with 5 additions and 7 deletions

View File

@@ -98,14 +98,14 @@ class InstallerApiController extends Controller
$ENV['QUEUE_DRIVER'] = 'sync';
$config = '';
foreach ($ENV as $key => $val) {
$config .= "{$key}={$val}\n";
}
// Write environment file
$fp = fopen(base_path().DIRECTORY_SEPARATOR.'example.env', 'w');
$fp = fopen(base_path().DIRECTORY_SEPARATOR.'.env', 'w');
fwrite($fp, $config);
fclose($fp);
rename(base_path().DIRECTORY_SEPARATOR.'example.env', base_path().DIRECTORY_SEPARATOR.'.env');
return ['response' => 'success', 'status' => '1'];
} else {
@@ -213,8 +213,6 @@ class InstallerApiController extends Controller
File::put($install, $datacontent);
// Applying email configuration on route
$smtpfilepath = "\App\Http\Controllers\Common\SettingsController::smtp()";
$lfmpath = "url('photos').'/'";
$link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$pos = strpos($link, 'final');
$link = substr($link, 0, $pos);