Skip to content

Commit

Permalink
モバイル判別用の処理の変数名修正
Browse files Browse the repository at this point in the history
$this->mobileDetect --> $this->_mobileDetect に
  • Loading branch information
otokomae committed Apr 21, 2016
1 parent 420b100 commit 8130d32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions View/Helper/WysiwygHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class WysiwygHelper extends AppHelper {
*/
public function __construct(View $view, $settings = array()) {
parent::__construct($view, $settings);
$this->mobileDetect = new MobileDetectComponent(new ComponentCollection());
$this->_mobileDetect = new MobileDetectComponent(new ComponentCollection());
}

/**
Expand Down Expand Up @@ -117,7 +117,7 @@ public function wysiwygScript() {
'image_upload_path' => $this->NetCommonsHtml->url('/wysiwyg/image/upload'),

// mobile判別
'is_mobile' => $this->mobileDetect->detect('isMobile'),
'is_mobile' => $this->_mobileDetect->detect('isMobile'),
];

// constsnts 設定を JavaScriptで利用するための設定に変換する
Expand Down

0 comments on commit 8130d32

Please sign in to comment.