From 210f4c92d4a003047ff7a1b5a18f7886b483f6fc Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Mon, 15 May 2017 23:18:24 +0200 Subject: [PATCH] Fixed #429 --- bl-kernel/boot/init.php | 4 ++-- bl-kernel/functions.php | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/bl-kernel/boot/init.php b/bl-kernel/boot/init.php index e3f99c55..42818f63 100644 --- a/bl-kernel/boot/init.php +++ b/bl-kernel/boot/init.php @@ -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(); diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php index f17af05d..07f7361c 100644 --- a/bl-kernel/functions.php +++ b/bl-kernel/functions.php @@ -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);