replace macros
implement new replaceMacros function
This commit is contained in:
@@ -6,6 +6,7 @@ namespace Friendica\Core;
|
||||
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
use Friendica\Network\HTTPException\InternalServerErrorException;
|
||||
use Friendica\Util\XML;
|
||||
|
||||
@@ -140,7 +141,7 @@ class System extends BaseObject
|
||||
|
||||
if (isset($description["title"])) {
|
||||
$tpl = get_markup_template('http_status.tpl');
|
||||
echo replace_macros($tpl, ['$title' => $description["title"],
|
||||
echo Renderer::replaceMacros($tpl, ['$title' => $description["title"],
|
||||
'$description' => defaults($description, 'description', '')]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user