From 3ab5a20ae3a9b62c1094396e8fa8217171b12f99 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 26 Dec 2006 14:35:16 +0000 Subject: Make itools fully old syntax again --- html.class | 6 +++--- text.class | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/html.class b/html.class index 8bde4dd..9fa4147 100644 --- a/html.class +++ b/html.class @@ -320,11 +320,11 @@ function select($tags, $options, $selected = null) { $grouphtml = ""; foreach($option as $optval => $opt) - $grouphtml .= $this->tag('option', 'value' => $optval, 'selected' => isset($selected) ? $optval == $selected : false, it_html::Q($opt)); - $html .= $this->tag('optgroup', 'label' => $value, $grouphtml); + $grouphtml .= $this->tag('option', array('value' => $optval, 'selected' => isset($selected) ? $optval == $selected : false), it_html::Q($opt)); + $html .= $this->tag('optgroup', array('label' => $value), $grouphtml); } else - $html .= $this->tag('option', 'value' => $value, 'selected' => isset($selected) ? $value == $selected : false, 'disabled' => $option === "", (trim($option) === "") ? " " : it_html::Q($option)); + $html .= $this->tag('option', array('value' => $value, 'selected' => isset($selected) ? $value == $selected : false, 'disabled' => $option === ""), (trim($option) === "") ? " " : it_html::Q($option)); } return $this->tag('select', $tags, $html); diff --git a/text.class b/text.class index 60a54fd..9db215b 100644 --- a/text.class +++ b/text.class @@ -353,7 +353,7 @@ function dump_php() natsort($keys); foreach($keys as $key) $text[$key] = $this->statictext[$key]; - $this->statictext = array_merge('_' => $text['_'], $text); + $this->statictext = array_merge(array('_' => $text['_']), $text); $oldmask = umask(002); if ($f = fopen($this->phpfile, 'w')) -- cgit v1.2.3