Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 135 → Rev 136

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