diff options
Diffstat (limited to 'templates/themes/categories')
| -rw-r--r-- | templates/themes/categories/news.html | 8 | ||||
| -rw-r--r-- | templates/themes/categories/theme.php | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/themes/categories/news.html b/templates/themes/categories/news.html index 9c7d8340..b3bea2b1 100644 --- a/templates/themes/categories/news.html +++ b/templates/themes/categories/news.html @@ -7,7 +7,7 @@ <link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}"/> </head> <body> - <h1>{{ settings.title }}</h1> + {{ boardlist.top }} <header> <h1>{{ settings.title }}</h1> <div class="subtitle">{{ settings.subtitle }}</div> @@ -15,16 +15,16 @@ <div class="ban"> {% if news|count == 0 %} - <p style="text-align:center" class="unimportant">(No news to show.)</p> + <p style="text-align:center" class="unimportant">{% trans %}(No news to show.){% endtrans %}</p> {% else %} {% for entry in news %} <h2 id="{{ entry.id }}"> {% if entry.subject %} {{ entry.subject }} {% else %} - <em>no subject</em> + <em>{% trans %}no subject{% endtrans %}</em> {% endif %} - <span class="unimportant"> — by {{ entry.name }} at {{ entry.time|date(config.post_date) }}</span> + <span class="unimportant"> — {% trans %}by{% endtrans %} {{ entry.name }} {% trans %}at{% endtrans %} {{ entry.time|date(config.post_date) }}</span> </h2> <p>{{ entry.body }}</p> {% endfor %} diff --git a/templates/themes/categories/theme.php b/templates/themes/categories/theme.php index 7d468d0d..74ed61ed 100644 --- a/templates/themes/categories/theme.php +++ b/templates/themes/categories/theme.php @@ -36,7 +36,7 @@ public static function news($settings) { global $config; - $query = query("SELECT * FROM `news` ORDER BY `time` DESC") or error(db_error()); + $query = query("SELECT * FROM ``news`` ORDER BY `time` DESC") or error(db_error()); $news = $query->fetchAll(PDO::FETCH_ASSOC); return Element('themes/categories/news.html', Array( |
