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.'dblanguage.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.'page.class.php');
|
||||
include(PATH_KERNEL.'user.class.php');
|
||||
|
@ -186,7 +186,7 @@ $dbPosts = new dbPosts();
|
|||
$dbPages = new dbPages();
|
||||
$dbUsers = new dbUsers();
|
||||
$dbTags = new dbTags();
|
||||
$dbCategories = new dbCategories();
|
||||
//$dbCategories = new dbCategories();
|
||||
$Site = new dbSite();
|
||||
$Url = new Url();
|
||||
$Parsedown = new ParsedownExtra();
|
||||
|
|
|
@ -96,7 +96,6 @@ function buildPostsForPage($pageNumber=0, $amount=POSTS_PER_PAGE_ADMIN, $removeU
|
|||
{
|
||||
global $dbPosts;
|
||||
global $dbTags;
|
||||
global $dbCategories;
|
||||
global $Url;
|
||||
|
||||
$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.
|
||||
$list = $dbTags->getList($pageNumber, $amount, $key);
|
||||
}
|
||||
elseif( $type=='category' && $key ) {
|
||||
$list = $dbCategories->getListOfPosts($pageNumber, $amount, $key);
|
||||
}
|
||||
else {
|
||||
// Get the keys list from posts database.
|
||||
$list = $dbPosts->getList($pageNumber, $amount, $removeUnpublished);
|
||||
|
|
Loading…
Reference in New Issue