Created
April 18, 2017 12:54
-
-
Save CB9TOIIIA/6282f08e5708f5ace938cec664c8d720 to your computer and use it in GitHub Desktop.
Попап - оптимизация выборки JBZoo/Zoo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\administrator\components\com_zoo\controllers\item.php | |
//110 line - function display | |
// $select = 'a.*, EXISTS (SELECT true FROM '.ZOO_TABLE_CATEGORY_ITEM.' WHERE item_id = a.id AND category_id = 0) as frontpage'; | |
$select = 'a.id,a.name,a.application_id,a.type,a.alias,a.created,a.modified,a.modified_by,a.publish_up,a.publish_down,a.priority,a.hits,a.state,a.access,a.created_by,a.created_by_alias,a.searchable,a.params, EXISTS (SELECT true FROM '.ZOO_TABLE_CATEGORY_ITEM.' WHERE item_id = a.id AND category_id = 0) as frontpage'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment