mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-21 16:13:00 +00:00
Replace deprecated ${var} in strings with {$var}
Using `${var}` to embed variables in strings causes warnings starting in PHP 8.2. This commit replaces two instances with `{$var}`, following recommendations in the deprecation notice and related RFC.
This commit is contained in:
parent
ed4bda5ebc
commit
484f71fc6c
1 changed files with 2 additions and 2 deletions
|
@ -1101,9 +1101,9 @@ class PeppermintParsedown extends ParsedownExtra
|
|||
// The page name is made safe when Pepperminty Wiki does initial consistency checks (if it's unsafe it results in a 301 redirect)
|
||||
$page_name = parsedown_pagename_resolve($matches_url[1]);
|
||||
|
||||
$internal_link_text = "[[${page_name}]]";
|
||||
$internal_link_text = "[[{$page_name}]]";
|
||||
if(!empty($matches[1])) // If the display text isn't empty, then respect it
|
||||
$internal_link_text = "[[${page_name}¦{$matches[1]}]]";
|
||||
$internal_link_text = "[[{$page_name}¦{$matches[1]}]]";
|
||||
|
||||
$result = $this->inlineInternalLink([
|
||||
"text" => $internal_link_text
|
||||
|
|
Loading…
Reference in a new issue