diff --git a/ElFinderHelper.php b/ElFinderHelper.php index 0823a23..240f0a8 100644 --- a/ElFinderHelper.php +++ b/ElFinderHelper.php @@ -61,13 +61,6 @@ public static function registerAssets() { $assetsDir = self::getAssetsDir(); $cs = Yii::app()->getClientScript(); - if (Yii::app()->getRequest()->enableCsrfValidation) { - $csrfTokenName = Yii::app()->request->csrfTokenName; - $csrfToken = Yii::app()->request->csrfToken; - $cs->registerMetaTag($csrfToken, 'csrf-token', null, array(), 'csrf-token'); - $cs->registerMetaTag($csrfTokenName, 'csrf-param', null, array(), 'csrf-param'); - } - // jQuery and jQuery UI $cs->registerCoreScript('jquery'); $cs->registerCoreScript('jquery.ui');