Commit f0d4a009 authored by Jan Köster's avatar Jan Köster
Browse files

test

parent 701ace8e
Loading
Loading
Loading
Loading
+2 −2
Changes for plugins/content/content.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -152,12 +152,12 @@ namespace blogi {
                    sql = "SELECT content.id,content.title,content.descrition,users.displayname,content.created,content.slug FROM content ";
                    sql <<"LEFT JOIN users ON content.author=users.id LEFT JOIN tags_content ON tags_content.content_id=content.id where tags_content.tag_id='"
                    << res[0][0]
                    <<"' ORDER BY content.created DESC LIMIT '" << end << "' OFFSET " << start;
                    <<"' ORDER BY content.created DESC LIMIT " << end << " OFFSET " << start;
                    ncount=Args->database[tid]->exec(sql,res);
                }
            } else {
                sql="SELECT content.id,content.title,content.descrition,users.displayname,content.created,content.slug FROM content LEFT JOIN users ON content.author=users.id ORDER BY content.created DESC";
                sql << " LIMIT '" << end << "' OFFSET " << start;
                sql << " LIMIT " << end << " OFFSET " << start;
                ncount=Args->database[tid]->exec(sql,res);
            }