From 9496e3571168feff780f6efb17ddc00c670e2dee Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 6 Aug 2018 12:57:48 +0200 Subject: added comments and renamed short method to url generators --- src/Routing/LegacyUrlGenerator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Routing/LegacyUrlGenerator.php') diff --git a/src/Routing/LegacyUrlGenerator.php b/src/Routing/LegacyUrlGenerator.php index e2434e1f..4c1e736b 100644 --- a/src/Routing/LegacyUrlGenerator.php +++ b/src/Routing/LegacyUrlGenerator.php @@ -14,7 +14,7 @@ class LegacyUrlGenerator extends UrlGenerator * @param array $parameters * @return string urls in the form /index.php?p=& */ - public function link_to($path, $parameters = []) + public function linkTo($path, $parameters = []) { $page = ltrim($path, '/'); if (!empty($page)) { @@ -22,7 +22,7 @@ class LegacyUrlGenerator extends UrlGenerator $parameters = array_merge(['p' => $page], $parameters); } - $uri = parent::link_to('index.php', $parameters); + $uri = parent::linkTo('index.php', $parameters); $uri = preg_replace('~(/index\.php)+~', '/index.php', $uri); return $uri; -- cgit v1.2.3-70-g09d2