diff --git a/includes/system/versioned/1.0.8.5/href.php b/includes/system/versioned/1.0.8.5/href.php index d722658c1..e975214f2 100644 --- a/includes/system/versioned/1.0.8.5/href.php +++ b/includes/system/versioned/1.0.8.5/href.php @@ -10,7 +10,7 @@ Released under the GNU General Public License */ - class Href { + class Href implements \JsonSerializable { protected $include_session = true; protected $page; @@ -136,6 +136,10 @@ public function __toString() { return $this->link(); } + public function jsonSerialize() { + return "$this"; + } + public static function hook($chain) { if (isset($chain['href'])) { $chain['link'] = $chain['href']->real_link();