mirror of
https://github.com/friendica/friendica
synced 2025-05-01 23:04:24 +02:00
Merge pull request #7508 from nupplaphil/task/arguments_module_class_2
Add Arguments & Module class (again)
This commit is contained in:
commit
425876316f
12 changed files with 1051 additions and 341 deletions
|
@ -1224,29 +1224,6 @@ 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