mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Make BaseModule methods dynamic
This commit is contained in:
parent
714f0febc4
commit
489cd0884a
253 changed files with 397 additions and 385 deletions
|
@ -65,7 +65,7 @@ class HTTPException
|
|||
* @param \Friendica\Network\HTTPException $e
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function rawContent(\Friendica\Network\HTTPException $e)
|
||||
public function rawContent(\Friendica\Network\HTTPException $e)
|
||||
{
|
||||
$content = '';
|
||||
|
||||
|
@ -84,7 +84,7 @@ class HTTPException
|
|||
* @return string
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function content(\Friendica\Network\HTTPException $e)
|
||||
public function content(\Friendica\Network\HTTPException $e): string
|
||||
{
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' ' . $e->getCode() . ' ' . $e->getDescription());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue