summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2007-05-09 07:51:59 +0000
committerChristian Schneider2007-05-09 07:51:59 +0000
commit3b869264f97ba063855925cb76c7d46561628c20 (patch)
tree6390aaad1474706ee25277701880435423a97fff
parentf43af745e8c07b72ea9453163438d8ddce753841 (diff)
downloaditools-3b869264f97ba063855925cb76c7d46561628c20.tar.gz
itools-3b869264f97ba063855925cb76c7d46561628c20.tar.bz2
itools-3b869264f97ba063855925cb76c7d46561628c20.zip
Make itools old syntax again
-rw-r--r--db_table.class2
-rw-r--r--html.class2
-rw-r--r--itjs.class2
-rw-r--r--url.class2
4 files changed, 4 insertions, 4 deletions
diff --git a/db_table.class b/db_table.class
index 0ab25da..e38ecec 100644
--- a/db_table.class
+++ b/db_table.class
@@ -278,7 +278,7 @@ function dump_html($tableargs="", $sqlwhere="", $c_fields="", $c_descriptions=""
if ($default_order == "")
$default_order = $fields[0];
- if (!in_array(it::replace(' DESC$' => "", $_REQUEST[$table_sort]), $fields))
+ if (!in_array(it::replace(array(' DESC$' => ""), $_REQUEST[$table_sort]), $fields))
$_REQUEST[$table_sort] = $default_order;
$sql = "SELECT $c_fields FROM $this->name";
diff --git a/html.class b/html.class
index f6cfb62..73937fa 100644
--- a/html.class
+++ b/html.class
@@ -235,7 +235,7 @@ function span($args)
function sanitize($html)
{
$result = "";
- $html = it::replace('[\0\n\r\s]+' => " ", $html);
+ $html = it::replace(array('[\0\n\r\s]+' => " "), $html);
$urlpattern = 'https?://[^">]+';
if ($tag = it::match("(.*)<(div|p|i|b)[^>]*>(.*?)</\\2>(.*)", $html))
diff --git a/itjs.class b/itjs.class
index c7ab607..edc0d33 100644
--- a/itjs.class
+++ b/itjs.class
@@ -35,7 +35,7 @@ function send_headers()
*/
function serialize($values)
{
- if ($callback = it::replace('[^\w.]' => "", $_REQUEST['itjs_call']))
+ if ($callback = it::replace(array('[^\w.]' => ""), $_REQUEST['itjs_call']))
{
$header = "<script type='text/javascript'>$callback(";
$footer = "," . intval($_REQUEST['itjs_callid']) . ")</script>";
diff --git a/url.class b/url.class
index 5635dac..280d3e6 100644
--- a/url.class
+++ b/url.class
@@ -561,7 +561,7 @@ function _params($params, $keys = null)
foreach (it_url::_params($params[$key]) as $value)
{
if (strlen($value))
- $result[] = it::replace('^([^=\[]*)' => $key . '[$1]', $value);
+ $result[] = it::replace(array('^([^=\[]*)' => $key . '[$1]'), $value);
}
}
else if (strlen($params[$key]))