euromark 11 年 前
コミット
d59ba39429
2 ファイル変更3 行追加2 行削除
  1. 1 0
      README.md
  2. 2 2
      View/Helper/FormatHelper.php

+ 1 - 0
README.md

@@ -129,6 +129,7 @@ A full list of fixes and useful migration tweaks towards the next major version
 * Tree helper for working with (complex) trees.
 * EmailLib as a wrapper for CakeEmail adding some more usefulness and making debugging/testing easier.
 * GoogleMapV3, Gravatar, Qrcode, Timeline, Typography, Ical, Hcard provide additional helper functionality.
+* NEW: Backported StringTemplate class (from CakePHP3.0) can be used to use template based rendering of HTML tags.
 
 and much more
 

+ 2 - 2
View/Helper/FormatHelper.php

@@ -102,10 +102,10 @@ class FormatHelper extends TextHelper {
 		$prevSlug = $nextSlug = null;
 		if (!empty($options['slug'])) {
 			if (!empty($neighbors['prev'])) {
-				$prevSlug = slug($neighbors['prev'][$alias][$field]);
+				$prevSlug = Inflector::slug($neighbors['prev'][$alias][$field], '-');
 			}
 			if (!empty($neighbors['next'])) {
-				$nextSlug = slug($neighbors['next'][$alias][$field]);
+				$nextSlug = Inflector::slug($neighbors['next'][$alias][$field], '-');
 			}
 		}
 		$titleAlias = $alias;