Skip to content

Commit

Permalink
fix: Remove workaround as fatfree-core is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
geokrety-bot committed Aug 11, 2023
1 parent a765367 commit 597d284
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions website/app-templates/smarty/plugins/modifier.alias.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ function smarty_modifier_alias($string, $params = null, $query = null, $fragment
}

$f3 = \Base::instance();
// Workaround for https://github.com/bcosca/fatfree-core/issues/345
if (!$f3->exists('__WORKAROUND_1__')) {
foreach ($f3->get('PARAMS') as $k => $v) {
if ($k === 0) {
continue;
}
$f3->set("PARAMS.$k", urlencode($v));
}
$f3->set('__WORKAROUND_1__', true);
}

return GK_SITE_BASE_SERVER_URL.$f3->alias($string, $params ?? [], $query).$fragment;
}

0 comments on commit 597d284

Please sign in to comment.