Skip to content

Commit

Permalink
isuse https://www.codacy.com fix 4/10
Browse files Browse the repository at this point in the history
  • Loading branch information
maks757 committed Oct 2, 2017
1 parent 14ccce0 commit b2ff369
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions controllers/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
* @author Maxim Cherednyk <maks757q@gmail.com, +380639960375>
*/

/**
* @var $this \yii\web\View
*/

namespace maks757\articlesdata\controllers;

use common\models\User;
Expand Down Expand Up @@ -98,9 +102,7 @@ public function actionUpload(){
else
$message = 'Не вдалося завантажити зображення.';

echo "<script type='text/javascript'>// <![CDATA[
window.parent.CKEDITOR.tools.callFunction('$callback', '$http_path', '$message');
// ]]></script>";
$this->view->registerJs("window.parent.CKEDITOR.tools.callFunction('$callback', '$http_path', '$message');");
}

}

0 comments on commit b2ff369

Please sign in to comment.