Add optional database table prefix (issue #118; see issue comments for details)
This commit is contained in:
1 parent
232f4ff868
commit
a052a791b5
18 files changed
+177
-165
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user