diff options
author | 2008-12-02 09:39:53 +0000 | |
---|---|---|
committer | 2008-12-02 09:39:53 +0000 | |
commit | 279e55cb0a0223f518e8593f7ac3df83554ab602 (patch) | |
tree | 93f8cdd0db46426624f9a13e54862e594ac9ba35 | |
parent | ef4fd0ad2715026bf12fd41e9c1c888e5a278687 (diff) | |
download | scuttle-279e55cb0a0223f518e8593f7ac3df83554ab602.tar.gz scuttle-279e55cb0a0223f518e8593f7ac3df83554ab602.zip |
Minor fix
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@183 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r-- | ajax/getlinkedtags.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/ajax/getlinkedtags.php b/ajax/getlinkedtags.php index fa8f2d0..feb70ae 100644 --- a/ajax/getlinkedtags.php +++ b/ajax/getlinkedtags.php @@ -23,19 +23,16 @@ require_once('../header.inc.php'); +/* Service creation: only useful services are created */ $b2tservice =& ServiceFactory::getServiceInstance('Bookmark2TagService'); $bookmarkservice =& ServiceFactory::getServiceInstance('TagService'); $userservice =& ServiceFactory::getServiceInstance('UserService'); $tagstatservice =& ServiceFactory::getServiceInstance('TagStatService'); -$tag = $_GET['tag']; -$uId = $_GET['uId']; +/* Managing all possible inputs */ +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) { $tag2tagservice =& ServiceFactory::getServiceInstance('Tag2TagService'); @@ -58,6 +55,6 @@ function displayTag($tag, $uId) { { label: 'name', identifier: 'id', items: [ <?php -echo displayTag($tag, $uId); +echo displayTag(GET_TAG, GET_UID); ?> ] } |