fix errors

This commit is contained in:
haykhakobyan94 2018-06-13 15:22:06 +04:00
parent f4a296bae7
commit 7c8858691f

View File

@ -86,7 +86,7 @@ class DefaultController extends Controller
$space = $this->getSpace();
$space->archive();
// Create Activity
// Create Activity when the space in archieved
SpaceArchieved::instance()->from($space)->about($space->owner)->save();
if (Yii::$app->request->isAjax) {
@ -108,7 +108,7 @@ class DefaultController extends Controller
$space = $this->getSpace();
$space->unarchive();
// Create Activity
// Create Activity when the space in unarchieved
SpaceUnArchieved::instance()->from($space)->about($space->owner)->save();
if (Yii::$app->request->isAjax) {