diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2022-09-28 09:50:22 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2022-09-28 09:50:22 +0000 |
| commit | 48960208784586e8ad9bde75626dc4e631e18711 (patch) | |
| tree | e9248937013bfbb9432816d899dd2f46ca7cc620 /vendor | |
| parent | 408bdb87a4eca0e4ac2b6eb85f6271e2c8c27b42 (diff) | |
fix for BIESt #1016
Merge request studip/studip!625
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/trails/src/response.php | 4 | ||||
| -rw-r--r-- | vendor/trails/trails.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/vendor/trails/src/response.php b/vendor/trails/src/response.php index 60376b3..474bfc1 100644 --- a/vendor/trails/src/response.php +++ b/vendor/trails/src/response.php @@ -75,7 +75,7 @@ class Trails_Response { */ function set_status($status, $reason = NULL) { $this->status = $status; - $this->reason = isset($reason) ? $reason : $this->get_reason($status); + $this->reason = isset($reason) ? $reason : self::get_reason($status); return $this; } @@ -87,7 +87,7 @@ class Trails_Response { * * @return string the reason phrase for this response's status */ - function get_reason($status) { + public static function get_reason($status) { $reason = array( 100 => 'Continue', 'Switching Protocols', 200 => 'OK', 'Created', 'Accepted', 'Non-Authoritative Information', diff --git a/vendor/trails/trails.php b/vendor/trails/trails.php index a6ca003..760fb16 100644 --- a/vendor/trails/trails.php +++ b/vendor/trails/trails.php @@ -371,7 +371,7 @@ class Trails_Response { */ function set_status($status, $reason = NULL) { $this->status = $status; - $this->reason = isset($reason) ? $reason : $this->get_reason($status); + $this->reason = isset($reason) ? $reason : self::get_reason($status); return $this; } @@ -383,7 +383,7 @@ class Trails_Response { * * @return string the reason phrase for this response's status */ - function get_reason($status) { + public static function get_reason($status) { $reason = array( 100 => 'Continue', 'Switching Protocols', 200 => 'OK', 'Created', 'Accepted', 'Non-Authoritative Information', |
