Skip to content

Commit

Permalink
#8: Use zen_get_info_page for storefront init
Browse files Browse the repository at this point in the history
  • Loading branch information
lat9 committed Feb 12, 2019
1 parent c468b9a commit d31b140
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions includes/init_includes/init_usu.php
Expand Up @@ -21,16 +21,6 @@

if ($_GET['main_page'] == FILENAME_PRODUCT_INFO && isset($_GET['products_id'])) {
// Retrieve the product type handler from the database
$type = $db->Execute(
"SELECT pt.type_handler
FROM " . TABLE_PRODUCTS . " p
LEFT JOIN " . TABLE_PRODUCT_TYPES . "pt
ON pt.type_id = p.products_type
WHERE p.products_id = " . (int)$_GET['products_id'] . "
LIMIT 1"
);
if (!$type->EOF) {
$_GET['main_page'] = $type->fields['type_handler'] . '_info';
}
$_GET['main_page'] = zen_get_info_page($_GET['products_id']);
}
}

0 comments on commit d31b140

Please sign in to comment.