Permalink
Browse files

fix #22022 配列の記述に角括弧「[ ]」が利用されているためphp5.3の環境で動作しないため (#931)

  • Loading branch information...
materializing authored and ryuring committed Jun 17, 2018
1 parent ee5b752 commit 26c527a8a65b03595a4c330c8b33ed8dabf4b288
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/Baser/Model/BcAppModel.php
  2. +2 −2 lib/Baser/Plugin/Blog/View/Helper/BlogHelper.php
@@ -1535,7 +1535,7 @@ public function exists($id = null) {
public function delete($id = null, $cascade = true) {
$result = parent::delete($id, $cascade);
if ($result === false && $this->Behaviors->enabled('SoftDelete')) {
return (bool)$this->field('deleted', ['deleted' => 1]);
return (bool)$this->field('deleted', array('deleted' => 1));
}
return $result;
}
@@ -1588,7 +1588,7 @@ public function checkDateAfterThan($check, $target) {
*/
public function getUrlPattern($url) {
$parameter = preg_replace('/^\//', '', $url);
$paths = [];
$paths = array();
$paths[] = '/' . $parameter;
if(preg_match('/\/$/', $paths[0])) {
$paths[] = $paths[0] . 'index';
@@ -193,9 +193,9 @@ public function getPostTitle($post, $link = true) {
* @return string 記事へのリンク
*/
public function getPostLink($post, $title, $options = array()) {
$options = array_merge([
$options = array_merge(array(
'escape' => true
], $options);
), $options);
$url = $this->getPostLinkUrl($post, false);
// EVENT beforeGetPostLink

0 comments on commit 26c527a

Please sign in to comment.