]> projects.mako.cc - scuttle/blobdiff - templates/bookmarks.tpl.php
updated readme with information on a series of bugs I know exist
[scuttle] / templates / bookmarks.tpl.php
index fa40561b56c47e42873a44612741336ff2beeb8f..743a7c25a22b8deccd9b7fa3bc48412b6ce8c5dd 100644 (file)
@@ -1,10 +1,22 @@
 <?php
 <?php
-$userservice     =& ServiceFactory::getServiceInstance('UserService');
-$bookmarkservice =& ServiceFactory::getServiceInstance('BookmarkService');
+$sf = new ServiceFactory();
+$userservice     =& $sf->getServiceInstance('UserService');
+$bookmarkservice =& $sf->getServiceInstance('BookmarkService');
 
 $logged_on_userid = $userservice->getCurrentUserId();
 $this->includeTemplate($GLOBALS['top_include']);
 
 
 $logged_on_userid = $userservice->getCurrentUserId();
 $this->includeTemplate($GLOBALS['top_include']);
 
+# define variables
+if (!isset($currenttag)) {
+    $currenttag = NULL;
+}
+if (!isset($user)) {
+    $user = NULL;
+}
+if (!isset($userid)) {
+    $userid = NULL;
+}
+
 include 'search.inc.php';
 if (count($bookmarks) > 0) {
 ?>
 include 'search.inc.php';
 if (count($bookmarks) > 0) {
 ?>

Benjamin Mako Hill || Want to submit a patch?