mirror of
https://github.com/humhub/humhub.git
synced 2025-03-14 20:19:47 +01:00
Controllers Clean
This commit is contained in:
parent
caaa4de878
commit
2b2dfc2d26
@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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')]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user