Permalink
Browse files

Revert "force news and pages order in search page"

This reverts commit bcb03c0.
  • Loading branch information...
vincent3569 committed Sep 29, 2017
1 parent bcb03c0 commit 85daad0f91bda424ab6fbf6ebe51b67d5f8e7c81
Showing with 0 additions and 7 deletions.
  1. +0 −7 functions.php
View
@@ -19,13 +19,6 @@
$_zenpage_and_news_enabled = extensionEnabled('zenpage') && ZP_NEWS_ENABLED;
$_zenpage_and_pages_enabled = extensionEnabled('zenpage') && ZP_PAGES_ENABLED;
$_zp_page_check = 'my_checkPageValidity';
if (in_context(ZP_SEARCH)) { // force news and pages order in search page
$_zp_current_search->setSortType('date', 'news');
$_zp_current_search->setSortDirection(false, 'news');
$_zp_current_search->setSortType('title', 'pages');
$_zp_current_search->setSortDirection(true, 'pages');
}
}
function my_checkPageValidity($request, $gallery_page, $page) {

1 comment on commit 85daad0

@vincent3569

This comment has been minimized.

Show comment
Hide comment
@vincent3569

vincent3569 Sep 29, 2017

Owner

this code is unnecessary since the corresponding options have been added in zenphoto (zenphoto/zenphoto#1104)

Owner

vincent3569 commented on 85daad0 Sep 29, 2017

this code is unnecessary since the corresponding options have been added in zenphoto (zenphoto/zenphoto#1104)

Please sign in to comment.