Skip to content
Snippets Groups Projects
Commit 3d98dffb authored by Jared Hancock's avatar Jared Hancock
Browse files

filter: Shop filter full path help topics

parent 857dd224
No related branches found
No related tags found
No related merge requests found
...@@ -297,7 +297,7 @@ class Topic { ...@@ -297,7 +297,7 @@ class Topic {
if (!$disabled && $info['disabled']) if (!$disabled && $info['disabled'])
continue; continue;
if ($disabled === self::DISPLAY_DISABLED && $info['disabled']) if ($disabled === self::DISPLAY_DISABLED && $info['disabled'])
$n .= " — ".__("(disabled)"); $n .= " - ".__("(disabled)");
$requested_names[$id] = $n; $requested_names[$id] = $n;
} }
......
...@@ -368,12 +368,9 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); ...@@ -368,12 +368,9 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<option value="0" selected="selected">&mdash; <?php <option value="0" selected="selected">&mdash; <?php
echo __('Unchanged'); ?> &mdash;</option> echo __('Unchanged'); ?> &mdash;</option>
<?php <?php
$sql='SELECT topic_id, topic FROM '.TOPIC_TABLE.' T ORDER by topic'; foreach (Topic::getHelpTopics(false, Topic::DISPLAY_DISABLED) as $id=>$name) {
if(($res=db_query($sql)) && db_num_rows($res)){ $selected=($info['topic_id'] && $id==$info['topic_id'])?'selected="selected"':'';
while(list($id,$name)=db_fetch_row($res)){ echo sprintf('<option value="%d" %s>%s</option>',$id,$selected,$name);
$selected=($info['topic_id'] && $id==$info['topic_id'])?'selected="selected"':'';
echo sprintf('<option value="%d" %s>%s</option>',$id,$selected,$name);
}
} }
?> ?>
</select> </select>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment