Fixed #429
This commit is contained in:
parent
eae8975cec
commit
210f4c92d4
|
@ -146,7 +146,7 @@ include(PATH_KERNEL.'dbusers.class.php');
|
||||||
include(PATH_KERNEL.'dbtags.class.php');
|
include(PATH_KERNEL.'dbtags.class.php');
|
||||||
include(PATH_KERNEL.'dblanguage.class.php');
|
include(PATH_KERNEL.'dblanguage.class.php');
|
||||||
include(PATH_KERNEL.'dbsite.class.php');
|
include(PATH_KERNEL.'dbsite.class.php');
|
||||||
include(PATH_KERNEL.'dbcategories.class.php');
|
//include(PATH_KERNEL.'dbcategories.class.php');
|
||||||
include(PATH_KERNEL.'post.class.php');
|
include(PATH_KERNEL.'post.class.php');
|
||||||
include(PATH_KERNEL.'page.class.php');
|
include(PATH_KERNEL.'page.class.php');
|
||||||
include(PATH_KERNEL.'user.class.php');
|
include(PATH_KERNEL.'user.class.php');
|
||||||
|
@ -186,7 +186,7 @@ $dbPosts = new dbPosts();
|
||||||
$dbPages = new dbPages();
|
$dbPages = new dbPages();
|
||||||
$dbUsers = new dbUsers();
|
$dbUsers = new dbUsers();
|
||||||
$dbTags = new dbTags();
|
$dbTags = new dbTags();
|
||||||
$dbCategories = new dbCategories();
|
//$dbCategories = new dbCategories();
|
||||||
$Site = new dbSite();
|
$Site = new dbSite();
|
||||||
$Url = new Url();
|
$Url = new Url();
|
||||||
$Parsedown = new ParsedownExtra();
|
$Parsedown = new ParsedownExtra();
|
||||||
|
|
|
@ -96,7 +96,6 @@ function buildPostsForPage($pageNumber=0, $amount=POSTS_PER_PAGE_ADMIN, $removeU
|
||||||
{
|
{
|
||||||
global $dbPosts;
|
global $dbPosts;
|
||||||
global $dbTags;
|
global $dbTags;
|
||||||
global $dbCategories;
|
|
||||||
global $Url;
|
global $Url;
|
||||||
|
|
||||||
$posts = array();
|
$posts = array();
|
||||||
|
@ -105,9 +104,6 @@ function buildPostsForPage($pageNumber=0, $amount=POSTS_PER_PAGE_ADMIN, $removeU
|
||||||
// Get the keys list from tags database, this database is optimized for this case.
|
// Get the keys list from tags database, this database is optimized for this case.
|
||||||
$list = $dbTags->getList($pageNumber, $amount, $key);
|
$list = $dbTags->getList($pageNumber, $amount, $key);
|
||||||
}
|
}
|
||||||
elseif( $type=='category' && $key ) {
|
|
||||||
$list = $dbCategories->getListOfPosts($pageNumber, $amount, $key);
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
// Get the keys list from posts database.
|
// Get the keys list from posts database.
|
||||||
$list = $dbPosts->getList($pageNumber, $amount, $removeUnpublished);
|
$list = $dbPosts->getList($pageNumber, $amount, $removeUnpublished);
|
||||||
|
|
Loading…
Reference in New Issue