fix redirecting url after enable/disable plugins
This commit is contained in:
parent
efd57bfce0
commit
139db5c08d
|
|
@ -120,13 +120,13 @@ class AdminController extends Controller
|
||||||
case 'enable':
|
case 'enable':
|
||||||
$plugins->enable($id);
|
$plugins->enable($id);
|
||||||
|
|
||||||
return redirect('admin/plugins');
|
return redirect('admin/plugins/manage');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'disable':
|
case 'disable':
|
||||||
$plugins->disable($id);
|
$plugins->disable($id);
|
||||||
|
|
||||||
return redirect('admin/plugins');
|
return redirect('admin/plugins/manage');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'delete':
|
case 'delete':
|
||||||
|
|
|
||||||
|
|
@ -26,10 +26,6 @@ class BootServiceProvider extends ServiceProvider
|
||||||
if (!$request->is('setup') && !$request->is('setup/*') && PHP_SAPI != "cli") {
|
if (!$request->is('setup') && !$request->is('setup/*') && PHP_SAPI != "cli") {
|
||||||
$this->checkInstallation();
|
$this->checkInstallation();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config('app.env') == 'debug' && config('app.debug')) {
|
|
||||||
$this->app->register('Barryvdh\Debugbar\ServiceProvider');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function checkFileExists()
|
protected function checkFileExists()
|
||||||
|
|
|
||||||
|
|
@ -3,21 +3,6 @@
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
|
|
||||||
if (! function_exists('get_real_ip')) {
|
|
||||||
|
|
||||||
function get_real_ip()
|
|
||||||
{
|
|
||||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
|
||||||
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
|
||||||
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
|
||||||
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
|
||||||
} else {
|
|
||||||
$ip = $_SERVER['REMOTE_ADDR'];
|
|
||||||
}
|
|
||||||
return $ip;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! function_exists('get_base_url')) {
|
if (! function_exists('get_base_url')) {
|
||||||
|
|
||||||
function get_base_url()
|
function get_base_url()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user