Minor fix

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@183 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
mensonge 2008-12-02 09:39:53 +00:00
parent ef4fd0ad27
commit 279e55cb0a

View file

@ -23,19 +23,16 @@
require_once('../header.inc.php'); require_once('../header.inc.php');
/* Service creation: only useful services are created */
$b2tservice =& ServiceFactory::getServiceInstance('Bookmark2TagService'); $b2tservice =& ServiceFactory::getServiceInstance('Bookmark2TagService');
$bookmarkservice =& ServiceFactory::getServiceInstance('TagService'); $bookmarkservice =& ServiceFactory::getServiceInstance('TagService');
$userservice =& ServiceFactory::getServiceInstance('UserService'); $userservice =& ServiceFactory::getServiceInstance('UserService');
$tagstatservice =& ServiceFactory::getServiceInstance('TagStatService'); $tagstatservice =& ServiceFactory::getServiceInstance('TagStatService');
$tag = $_GET['tag']; /* Managing all possible inputs */
$uId = $_GET['uId']; isset($_GET['tag']) ? define('GET_TAG', $_GET['tag']): define('GET_TAG', '');
isset($_GET['uId']) ? define('GET_UID', $_GET['uId']): define('GET_UID', '');
if ($userservice->isLoggedOn()) {
$loggedon = true;
$currentUser = $userservice->getCurrentUser();
$currentUserID = $userservice->getCurrentUserId();
}
function displayTag($tag, $uId) { function displayTag($tag, $uId) {
$tag2tagservice =& ServiceFactory::getServiceInstance('Tag2TagService'); $tag2tagservice =& ServiceFactory::getServiceInstance('Tag2TagService');
@ -58,6 +55,6 @@ function displayTag($tag, $uId) {
{ label: 'name', identifier: 'id', items: [ { label: 'name', identifier: 'id', items: [
<?php <?php
echo displayTag($tag, $uId); echo displayTag(GET_TAG, GET_UID);
?> ?>
] } ] }