Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cabeae0
)
fixed format_options() (broken by recent pulldown changes)
author
Jason Woofenden
<jason183@herkamire.com>
Mon, 22 Oct 2007 22:13:45 +0000
(18:13 -0400)
committer
Jason Woofenden
<jason183@herkamire.com>
Mon, 22 Oct 2007 22:13:45 +0000
(18:13 -0400)
format.php
patch
|
blob
|
history
diff --git
a/format.php
b/format.php
index
bb34919
..
c14d01a
100644
(file)
--- a/
format.php
+++ b/
format.php
@@
-33,8
+33,11
@@
function format_options($str, $name) {
die("Couldn't find options for \"$name\". Be sure to call pulldown().");
}
- if(!in_array($str, array_keys($GLOBALS[$name . '_options']['options']))) {
- return '';
+ foreach($GLOBALS[$name . '_options']['options'] as $keyval) {
+ list($key, $value) = $keyval;
+ if($str == $key) {
+ return $str;
+ }
}
return $str;