From cf213449b1f51df0a0477bb102d5d73042b980a2 Mon Sep 17 00:00:00 2001 From: mensonge Date: Sun, 30 Nov 2008 19:32:15 +0000 Subject: [PATCH] Minor fix: correct menu boxes and tag normalization git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@180 b3834d28-1941-0410-a4f8-b48e95affb8f --- services/tagservice.php | 9 +++++++++ templates/sidebar.block.menu.php | 2 +- templates/sidebar.block.menu2.php | 3 ++- templates/top.inc.php | 4 ++-- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/services/tagservice.php b/services/tagservice.php index 504d13f..ac30061 100644 --- a/services/tagservice.php +++ b/services/tagservice.php @@ -80,6 +80,15 @@ class TagService { function normalize($tags) { //clean tags from strange characters $tags = str_replace(array('"', '\'', '/'), "_", $tags); + + //normalize + if(!is_array($tags)) { + $tags = strtolower(trim($tags)); + } else { + for($i=0; $i 0) { ?> diff --git a/templates/top.inc.php b/templates/top.inc.php index b886e76..e149c34 100644 --- a/templates/top.inc.php +++ b/templates/top.inc.php @@ -23,12 +23,12 @@ if(isset($rsschannels)) { src="jsScuttle.php"> - + djConfig="parseOnLoad:true, isDebug:false, usePlainJson:true">