Skip to content

Commit 94e961c

Browse files
author
github-actions
committed
Merge pull request #1753 from hydephp/deprecate-global-unslash-function
[1.x] Deprecate the global `unslash` function hydephp/develop@3757b46
1 parent 4758bfd commit 94e961c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Routing/PageRouter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static function handle(Request $request): Response
9292

9393
protected function getPageFromRoute(): HydePage
9494
{
95-
if (unslash($this->request->path) === DocumentationSearchPage::routeKey() && DocumentationSearchPage::enabled()) {
95+
if (\Hyde\unslash($this->request->path) === DocumentationSearchPage::routeKey() && DocumentationSearchPage::enabled()) {
9696
// Since this page is not present within the search index (as it's normally generated by a build task)
9797
// we instantiate and return it here.
9898
return new DocumentationSearchPage();

0 commit comments

Comments
 (0)