Skip to content

Commit 6e57c26

Browse files
committed
categories: show_home and image handling
1 parent 0214ab3 commit 6e57c26

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

xpath_xtract.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
foreach ($toc as $href => $mainCat) {
106106
$sql[] = sprintf(
107107
'INSERT INTO ' . $prefix . 'faqcategories ('
108-
. 'id, lang, parent_id, name, description, user_id, group_id, active, show_home'
109-
. ') VALUES (@main_id, "%s", 0, "%d. %s", "%s", 1, 0, 1, 1);',
108+
. 'id, lang, parent_id, name, description, user_id, group_id, active, show_home, image'
109+
. ') VALUES (@main_id, "%s", 0, "%d. %s", "%s", 1, 0, 1, 1, "");',
110110
'de',
111111
$mainCatIndex++,
112112
trim($mainCat["headline"]),
@@ -120,8 +120,8 @@
120120
$sql[] = 'SET @next_id = (SELECT MAX(id)+1 FROM ' . $prefix . 'faqcategories);';
121121
$sql[] = sprintf(
122122
'INSERT INTO ' . $prefix . 'faqcategories ('
123-
. 'id, lang, parent_id, name, description, user_id, group_id, active, show_home'
124-
. ') VALUES (@next_id, "%s", @main_id, "%d. %s", "%s", 1, 0, 1, 1);',
123+
. 'id, lang, parent_id, name, description, user_id, group_id, active, show_home, image'
124+
. ') VALUES (@next_id, "%s", @main_id, "%d. %s", "%s", 1, 0, 1, 0, "");',
125125
'de',
126126
$subCatIndex++,
127127
trim($subCat["headline"]),

0 commit comments

Comments
 (0)