Skip to content

Commit

Permalink
renaming stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
skerbis committed Oct 10, 2017
1 parent 26cab70 commit 74bea0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/yrewrite_scheme_urlscheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function getRedirection(rex_article $art, rex_yrewrite_domain $domain) {
}

public function appendArticle($path, rex_article $art, rex_yrewrite_domain $domain) {
$path_suffix = rex_config::get('url_scheme', 'suffix');
$path_suffix = rex_config::get('yrewrite_scheme', 'suffix');
return $path .$path_suffix ;
}
}
Expand All @@ -27,14 +27,14 @@ public function getRedirection(rex_article $art, rex_yrewrite_domain $domain)
return false;
}
public function appendArticle($path, rex_article $art, rex_yrewrite_domain $domain) {
$path_suffix = rex_config::get('url_scheme', 'suffix');
$path_suffix = rex_config::get('yrewrite_scheme', 'suffix');
return $path .$path_suffix ;
}
}

class yrewrite_scheme_suffix extends rex_yrewrite_scheme {
public function appendArticle($path, rex_article $art, rex_yrewrite_domain $domain) {
$path_suffix = rex_config::get('url_scheme', 'suffix');
$path_suffix = rex_config::get('yrewrite_scheme', 'suffix');
if ($art->isStartArticle() && $domain->getMountId() != $art->getId()) {
return $path . $path_suffix;
}
Expand All @@ -50,7 +50,7 @@ public function appendCategory($path, rex_category $cat, rex_yrewrite_domain $do
}
public function appendArticle($path, rex_article $art, rex_yrewrite_domain $domain)
{
$suffix_content = rex_config::get('url_scheme', 'suffix');
$suffix_content = rex_config::get('yrewrite_scheme', 'suffix');
return $path . '/' . $this->normalize($art->getName(), $art->getClang()) . $path_suffix;
}
}

0 comments on commit 74bea0d

Please sign in to comment.