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