Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Commit

Permalink
Kompatibilität zu PHP 5.3.x herstellen (#433)
Browse files Browse the repository at this point in the history
5.3.x ist die REX_MIN_PHP_VERSION
  • Loading branch information
tbaddade authored and gharlan committed Sep 26, 2019
1 parent 808eb49 commit f48f2e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions redaxo/include/classes/class.rex_article_base.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,13 @@ class rex_article_base

/*protected*/ function replaceLinks($content)
{
$clang = (integer) $this->clang;
return preg_replace_callback(
'@redaxo://(\d+)(?:-(\d+))?/?@i',
function ($matches) {
function ($matches) use ($clang) {
$secondParam = isset($matches[2])
? $matches[2]
: (integer) $this->clang;
: $clang;
return rex_getUrl($matches[1], $secondParam );
},
$content
Expand Down

0 comments on commit f48f2e1

Please sign in to comment.