mirror of
https://github.com/friendica/friendica
synced 2025-04-29 19:44:22 +02:00
Revert "Introduce Arguments / Module class"
This commit is contained in:
parent
e9fc2af1c3
commit
fcb1a78352
12 changed files with 358 additions and 1083 deletions
|
@ -1224,6 +1224,29 @@ class Profile
|
|||
return $uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Strip zrl parameter from a string.
|
||||
*
|
||||
* @param string $s The input string.
|
||||
* @return string The zrl.
|
||||
*/
|
||||
public static function stripZrls($s)
|
||||
{
|
||||
return preg_replace('/[\?&]zrl=(.*?)([\?&]|$)/is', '', $s);
|
||||
}
|
||||
|
||||
/**
|
||||
* Strip query parameter from a string.
|
||||
*
|
||||
* @param string $s The input string.
|
||||
* @param $param
|
||||
* @return string The query parameter.
|
||||
*/
|
||||
public static function stripQueryParam($s, $param)
|
||||
{
|
||||
return preg_replace('/[\?&]' . $param . '=(.*?)(&|$)/ism', '$2', $s);
|
||||
}
|
||||
|
||||
/**
|
||||
* search for Profiles
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue