@@ -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
@@ -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;