fix some CS, remove unneeded include - file is included in header.php

This commit is contained in:
Christian Weiske 2013-03-21 06:44:11 +01:00
parent 2f865db513
commit 20e3b5ebd7

View File

@ -92,16 +92,14 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService
} }
} }
$tagservice =SemanticScuttle_Service_Factory::get('Tag'); $tagservice = SemanticScuttle_Service_Factory::get('Tag');
$tags = $tagservice->normalize($tags); $tags = $tagservice->normalize($tags);
$tags_count = is_array($tags)?count($tags):0; $tags_count = is_array($tags)?count($tags):0;
if (is_array($tags)) { if (is_array($tags)) {
foreach($tags as $i => $tag) { foreach ($tags as $i => $tag) {
$tags[$i] = trim(utf8_strtolower($tags[$i])); $tags[$i] = trim(utf8_strtolower($tags[$i]));
if ($fromApi) { if ($fromApi) {
include_once 'SemanticScuttle/functions.php';
$tags[$i] = convertTag($tags[$i], 'in'); $tags[$i] = convertTag($tags[$i], 'in');
} }
} }
@ -655,7 +653,7 @@ class SemanticScuttle_Service_Bookmark2Tag extends SemanticScuttle_DbService
// Attach new tags // Attach new tags
$new = $tagservice->normalize($new); $new = $tagservice->normalize($new);
foreach(array_keys($bookmarks) as $key) { foreach (array_keys($bookmarks) as $key) {
$row = $bookmarks[$key]; $row = $bookmarks[$key];
$this->attachTags($row['bId'], $new, $fromApi, NULL, false); $this->attachTags($row['bId'], $new, $fromApi, NULL, false);
} }