Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 133 → Rev 134

/blog/index.php
13,7 → 13,7
write('<br />');
}
 
$query = 'ORDER BY DatePosted DESC WHERE ParentID = -1';
$query = 'HERE ParentID = -1';
 
if (isset($_GET['cat']))
{
21,6 → 21,8
write('<p>Only showing blog posts from the ' . $_GET['cat'] . ' category. <a href="index.php">Reset Filtering</a></p><br />');
}
 
$query = $query . " ORDER BY DatePosted DESC";
 
$ids = $page->findIDs('BlogPosts', $query);
for ($i = 0; $i < count($ids); $i++)
{
/index.php
22,7 → 22,7
 
<?php
 
$ids = $page->findIDs('BlogPosts', 'WHERE ParentID = -1');
$ids = $page->findIDs('BlogPosts', 'WHERE ParentID = -1 ORDER BY DatePosted DESC');
for ($i = 0; $i < 5 && $i < count($ids); $i++)
{
$id = $ids[$i];