openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit e9125620661fbd2e6b99be8d3d9b268eed609932
parent 414e812f479ef6c50d4350316ca1498d154e49a5
Author: Jan Dankert <develop@jandankert.de>
Date:   Sat, 27 Feb 2021 01:25:19 +0100

Fix: Workaround for PHP 5.x, but i do not understand the reason.

Diffstat:
Mmodules/util/Transformer.class.php | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/util/Transformer.class.php b/modules/util/Transformer.class.php @@ -2,9 +2,8 @@ namespace util; -use cms\model\Link; use cms\model\BaseObject; -use cms\model\Url; +use cms\model\Url as MUrl; use \util\exception\ObjectNotFoundException; use wikiparser\model\DocumentElement; use wikiparser\parser\WikiParser; @@ -91,7 +90,7 @@ class Transformer try { $o->load(); if ($o->isUrl) { - $l = new Url($objectId); + $l = new MUrl($objectId); $l->load(); if ($this->page->mimeType() == 'text/html') $targetPath = htmlspecialchars($targetPath);