Welcome to Paster, Anonymous Friend!
{
self::
$current_uri =
key($_GET);
unset($_GET[self::
$current_uri]);
// Fixes really strange handling of a suffix in a GET string
if ($suffix = Kohana::
config('core.url_suffix') AND
substr(self::
$current_uri, -
(strlen($suffix))) ===
'_'.
substr($suffix,
1))
{
self::
$current_uri =
substr(self::
$current_uri,
0, -
(strlen($suffix)));
}
}