From c3a54a852b426d5d4c82e343ca24d745ae5090c0 Mon Sep 17 00:00:00 2001 From: n1215 Date: Sat, 9 Aug 2014 01:04:33 +0900 Subject: [PATCH] =?UTF-8?q?fix=20#6475=20=E3=82=B3=E3=83=B3=E3=83=86?= =?UTF-8?q?=E3=83=B3=E3=83=84=E3=83=8A=E3=83=93=E3=81=A8=E3=83=AD=E3=83=BC?= =?UTF-8?q?=E3=82=AB=E3=83=AB=E3=83=8A=E3=83=93=E3=81=AE=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Baser/View/Helper/BcPageHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Baser/View/Helper/BcPageHelper.php b/lib/Baser/View/Helper/BcPageHelper.php index 83643983ee..62a1e0599f 100755 --- a/lib/Baser/View/Helper/BcPageHelper.php +++ b/lib/Baser/View/Helper/BcPageHelper.php @@ -67,7 +67,7 @@ public function __construct(View $View) { */ public function beforeRender($viewFile) { //if ($this->request->params['controller'] == 'pages' && ($this->request->params['action'] == 'display' || $this->request->params['action'] == 'smartphone_display') && isset($this->request->params['pass'][0])) { - if ($this->request->params['controller'] == 'pages' && preg_match('/_display$/', $this->request->params['action']) && isset($this->request->params['pass'][0])) { + if ($this->request->params['controller'] == 'pages' && preg_match('/(^|_)display$/', $this->request->params['action']) && isset($this->request->params['pass'][0])) { // @TODO ページ機能が.html拡張子なしに統合できたらコメントアウトされたものに切り替える //$this->request->data = $this->Page->findByUrl('/'.impload('/',$this->request->params['pass'][0])); $param = Configure::read('BcRequest.pureUrl');