Skip to content

Commit 99b23a7

Browse files
authored
Update url_helper.php
1 parent 0f9f384 commit 99b23a7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

system/Helpers/url_helper.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function index_page(?App $altConfig = null): string
148148
* @param array|string $uri URI string or array of URI segments
149149
* @param string $title The link title
150150
* @param array|object|string $attributes Any attributes
151-
* @param App|null $altConfig Alternate configuration to use
151+
* @param App|null $config Alternate configuration to use
152152
*/
153153
function anchor($uri = '', string $title = '', $attributes = '', ?App $config = null): string
154154
{
@@ -178,13 +178,10 @@ function anchor($uri = '', string $title = '', $attributes = '', ?App $config =
178178
* @param string $uri the URL
179179
* @param string $title the link title
180180
* @param array|false|object|string $attributes any attributes
181-
* @param App|null $altConfig Alternate configuration to use
181+
* @param App|null $config Alternate configuration to use
182182
*/
183-
function anchor_popup($uri = '', string $title = '', $attributes = false, ?App $altConfig = null): string
183+
function anchor_popup($uri = '', string $title = '', $attributes = false, ?App $config = null): string
184184
{
185-
// use alternate config if provided, else default one
186-
$config = $altConfig ?? config(App::class);
187-
188185
$siteUrl = preg_match('#^(\w+:)?//#i', $uri) ? $uri : site_url($uri, null, $config);
189186
$siteUrl = rtrim($siteUrl, '/');
190187

0 commit comments

Comments
 (0)