Skip to content

Commit

Permalink
Merge branch 'release/1.6.27'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Sep 1, 2020
2 parents fa791ed + 6e8c852 commit 75cb4e3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# v1.6.27
## 09/01/2020

1. [](#improved)
* Right trim route for safety
* Use the proper ellipsis for summary [#2939](https://github.com/getgrav/grav/pull/2939)
* Left pad schedule times with zeros [#2921](https://github.com/getgrav/grav/pull/2921)

# v1.6.26
## 06/08/2020

Expand Down
2 changes: 1 addition & 1 deletion system/defines.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

// Some standard defines
define('GRAV', true);
define('GRAV_VERSION', '1.6.26');
define('GRAV_VERSION', '1.6.27');
define('GRAV_TESTING', false);
define('DS', '/');

Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Page/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ public function summary($size = null, $textOnly = false)
return $content;
}

return mb_strimwidth($content, 0, $size, '...', 'UTF-8');
return mb_strimwidth($content, 0, $size, '', 'UTF-8');
}

$summary = Utils::truncateHtml($content, $size);
Expand Down
4 changes: 2 additions & 2 deletions system/src/Grav/Common/Scheduler/Cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Cron
'name_year' => 'année',
'text_period' => 'Chaque %s',
'text_mins' => 'à %s minutes',
'text_time' => 'à %s:%s',
'text_time' => 'à %02s:%02s',
'text_dow' => 'le %s',
'text_month' => 'de %s',
'text_dom' => 'le %s',
Expand All @@ -86,7 +86,7 @@ class Cron
'name_year' => 'year',
'text_period' => 'Every %s',
'text_mins' => 'at %s minutes past the hour',
'text_time' => 'at %s:%s',
'text_time' => 'at %02s:%02s',
'text_dow' => 'on %s',
'text_month' => 'of %s',
'text_dom' => 'on the %s',
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Framework/Route/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public function toString(bool $includeRoot = false)
$url .= '?' . $this->getUriQuery();
}

return $url;
return rtrim($url,'/');
}

/**
Expand Down

0 comments on commit 75cb4e3

Please sign in to comment.