Skip to content

Commit

Permalink
Fix JSON+LD links
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Jul 23, 2021
1 parent 1d7e708 commit 5f7a532
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/system/versioned/1.0.8.5/href.php
Expand Up @@ -10,7 +10,7 @@
Released under the GNU General Public License
*/

class Href {
class Href implements \JsonSerializable {

protected $include_session = true;
protected $page;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 5f7a532

Please sign in to comment.