Skip to content

Commit

Permalink
Variable for disabled editora with message variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroOmatech committed Jan 7, 2020
1 parent 310bd6f commit c7466ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/admin/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ class Controller extends LaravelController

public function __construct()
{

if( env('EDITORA_MAINTENANCE_MODE') && env('EDITORA_MAINTENANCE_MODE') === true){
if( env('EDITORA_MAINTENANCE_MESSAGE')){
die( env('EDITORA_MAINTENANCE_MESSAGE') );
}else{
die('En mantenimiento');
}
}

$urls = new Urls();
//ob_start('ob_gzhandler');

Expand Down

0 comments on commit c7466ca

Please sign in to comment.