aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ratatoeskr/frontend.php8
-rw-r--r--ratatoeskr/sys/models.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/ratatoeskr/frontend.php b/ratatoeskr/frontend.php
index eff7511..ffb2941 100644
--- a/ratatoeskr/frontend.php
+++ b/ratatoeskr/frontend.php
@@ -668,7 +668,7 @@ function frontend_url_handler(&$data, $url_now, &$url_next)
{
throw new NotFoundError();
}
- $ste->vars["current"]["tag"] = tag_transform_ste($tag);
+ $ste->vars["current"]["tag"] = tag_transform_ste($tag, $lang);
}
else
{
@@ -681,8 +681,8 @@ function frontend_url_handler(&$data, $url_now, &$url_next)
throw new NotFoundError();
}
- if(count($path == 0))
- $ste->vars["current"]["section"] = section_transform_ste($section);
+ if(count($path)== 0)
+ $ste->vars["current"]["section"] = section_transform_ste($section, $lang);
else
{
try
@@ -693,7 +693,7 @@ function frontend_url_handler(&$data, $url_now, &$url_next)
{
throw new NotFoundError();
}
- $ste->vars["current"]["article"] = article_transform_ste($article);
+ $ste->vars["current"]["article"] = article_transform_ste($article, $lang);
if(isset($_GET["comment"]))
{
diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php
index 0ec4111..0a14a3d 100644
--- a/ratatoeskr/sys/models.php
+++ b/ratatoeskr/sys/models.php
@@ -1772,7 +1772,7 @@ class Article
{
$obj = new self;
$obj ->populate_by_sqlresult(qdb(
- "SELECT `id`, `urltitle`, `title`, `text`, `excerpt`, `meta`, `custom`, `article_image`, `status`, `section`, `timestamp`, `allow_comments` FROM `PREFIX_articles` WHERE `urlname` = '%s'", $urlname
+ "SELECT `id`, `urltitle`, `title`, `text`, `excerpt`, `meta`, `custom`, `article_image`, `status`, `section`, `timestamp`, `allow_comments` FROM `PREFIX_articles` WHERE `urltitle` = '%s'", $urlname
));
return $obj;
}