Controllers Clean

This commit is contained in:
Carlos Ferreira 2017-03-26 02:10:16 +01:00
parent caaa4de878
commit 2b2dfc2d26
3 changed files with 7 additions and 7 deletions

View File

@ -2,17 +2,16 @@
/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
* @copyright Copyright (c) 2017 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/
namespace humhub\controllers;
use Yii;
use humhub\components\Controller;
use yii\web\HttpException;
use yii\base\UserException;
use humhub\components\Controller;
/**
* ErrorController
@ -54,7 +53,7 @@ class ErrorController extends Controller
}
return $this->render('@humhub/views/error/index', [
'message' => $message
'message' => $message
]);
}

View File

@ -8,8 +8,8 @@
namespace humhub\controllers;
use humhub\components\Controller;
use yii\helpers\Url;
use humhub\components\Controller;
/**
* HomeController redirects to the home page
@ -22,7 +22,7 @@ class HomeController extends Controller
/**
* Redirects to the home controller/action
*
*
* @return \yii\web\Response
*/
public function actionIndex()

View File

@ -2,7 +2,7 @@
/**
* @link https://www.humhub.org/
* @copyright Copyright (c) 2015 HumHub GmbH & Co. KG
* @copyright Copyright (c) 2017 HumHub GmbH & Co. KG
* @license https://www.humhub.com/licences
*/
@ -35,6 +35,7 @@ class MarkdownController extends Controller
public function actionPreview()
{
$this->forcePostRequest();
return \humhub\widgets\MarkdownView::widget(['markdown' => Yii::$app->request->post('markdown')]);
}