summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/admin.php6
-rw-r--r--www/alltags.php4
-rw-r--r--www/api/export_gcs.php2
-rw-r--r--www/api/export_sioc.php2
-rw-r--r--www/api/posts_all.php2
-rw-r--r--www/api/posts_public.php2
-rw-r--r--www/api/tags_get.php2
-rw-r--r--www/bookmarks.php10
-rw-r--r--www/edit.php2
-rw-r--r--www/history.php6
-rw-r--r--www/index.php2
-rw-r--r--www/populartags.php2
-rw-r--r--www/profile.php2
-rw-r--r--www/rss.php2
-rw-r--r--www/search.php4
-rw-r--r--www/tags.php4
-rw-r--r--www/users.php2
-rw-r--r--www/watchlist.php8
18 files changed, 32 insertions, 32 deletions
diff --git a/www/admin.php b/www/admin.php
index f9b9b8d..034872a 100644
--- a/www/admin.php
+++ b/www/admin.php
@@ -70,7 +70,7 @@ if ($action
}
break;
case 'checkUrl' :
- $bookmarks =& $bookmarkservice->getBookmarks(0, NULL, NULL, NULL, NULL, getSortOrder());
+ $bookmarks = $bookmarkservice->getBookmarks(0, NULL, NULL, NULL, NULL, getSortOrder());
foreach($bookmarks['bookmarks'] as $bookmark) {
if(!checkUrl($bookmark['bAddress'])) {
$tplVars['error'].= T_('Problem with ').$bookmark['bAddress'].' ('. $bookmark['username'] .')<br/>';
@@ -83,13 +83,13 @@ if ($action
}
$templatename = 'admin.tpl';
-$users =& $userservice->getObjectUsers();
+$users = $userservice->getObjectUsers();
if ( !is_array($users) ) {
$users = array();
}
-$tplVars['users'] =& $users;
+$tplVars['users'] = $users;
$templateservice->loadTemplate($templatename, $tplVars);
?>
diff --git a/www/alltags.php b/www/alltags.php
index 43ad1cb..16af7fd 100644
--- a/www/alltags.php
+++ b/www/alltags.php
@@ -63,8 +63,8 @@ if (isset($user) && $user != '') {
$userid = NULL;
}
-$tags =& $b2tservice->getTags($userid);
-$tplVars['tags'] =& $b2tservice->tagCloud($tags, 5, 90, 225, getSortOrder());
+$tags = $b2tservice->getTags($userid);
+$tplVars['tags'] = $b2tservice->tagCloud($tags, 5, 90, 225, getSortOrder());
$tplVars['user'] = $user;
if (isset($userid)) {
diff --git a/www/api/export_gcs.php b/www/api/export_gcs.php
index 9c0d85c..06ab217 100644
--- a/www/api/export_gcs.php
+++ b/www/api/export_gcs.php
@@ -36,7 +36,7 @@ else
$tag = NULL;
// Get the posts relevant to the passed-in variables.
-$bookmarks =& $bookmarkservice->getBookmarks(0, NULL, NULL, $tag, NULL, getSortOrder());
+$bookmarks = $bookmarkservice->getBookmarks(0, NULL, NULL, $tag, NULL, getSortOrder());
// Set up the plain file and output all the posts.
diff --git a/www/api/export_sioc.php b/www/api/export_sioc.php
index 47ffc96..45cbf14 100644
--- a/www/api/export_sioc.php
+++ b/www/api/export_sioc.php
@@ -61,7 +61,7 @@ No page for usergroup (users/admin) for the moment
<?php
//bookmarks are described using Annotea ontology
-$bookmarks =& $bookmarkservice->getBookmarks(0, NULL, NULL, NULL);
+$bookmarks = $bookmarkservice->getBookmarks(0, NULL, NULL, NULL);
?>
<?php foreach($bookmarks['bookmarks'] as $bookmark): ?>
diff --git a/www/api/posts_all.php b/www/api/posts_all.php
index 2d274f4..7204b60 100644
--- a/www/api/posts_all.php
+++ b/www/api/posts_all.php
@@ -19,7 +19,7 @@ else
$tag = NULL;
// Get the posts relevant to the passed-in variables.
-$bookmarks =& $bookmarkservice->getBookmarks(0, NULL, $userservice->getCurrentUserId(), $tag);
+$bookmarks = $bookmarkservice->getBookmarks(0, NULL, $userservice->getCurrentUserId(), $tag);
// Set up the XML file and output all the posts.
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
diff --git a/www/api/posts_public.php b/www/api/posts_public.php
index 4258550..0a09187 100644
--- a/www/api/posts_public.php
+++ b/www/api/posts_public.php
@@ -20,7 +20,7 @@ else
$tag = NULL;
// Get the posts relevant to the passed-in variables.
-$bookmarks =& $bookmarkservice->getBookmarks(0, NULL, NULL, $tag);
+$bookmarks = $bookmarkservice->getBookmarks(0, NULL, NULL, $tag);
// Set up the XML file and output all the posts.
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
diff --git a/www/api/tags_get.php b/www/api/tags_get.php
index 06a40d9..c0fb83d 100644
--- a/www/api/tags_get.php
+++ b/www/api/tags_get.php
@@ -13,7 +13,7 @@ $b2tservice =SemanticScuttle_Service_Factory::get('Bookmark2Tag');
// Get the tags relevant to the passed-in variables.
-$tags =& $b2tservice->getTags($userservice->getCurrentUserId());
+$tags = $b2tservice->getTags($userservice->getCurrentUserId());
// Set up the XML file and output all the tags.
echo '<?xml version="1.0" standalone="yes" ?'.">\r\n";
diff --git a/www/bookmarks.php b/www/bookmarks.php
index fe12310..bf06fb6 100644
--- a/www/bookmarks.php
+++ b/www/bookmarks.php
@@ -100,7 +100,7 @@ if ($user) {
$templateservice->loadTemplate('error.404.tpl', $tplVars);
exit();
} else {
- $userid =& $userinfo['uId'];
+ $userid = $userinfo['uId'];
}
}
$pagetitle .= ': '. $user;
@@ -173,7 +173,7 @@ if ($userservice->isLoggedOn() && POST_SUBMITTED != '') {
if (GET_ACTION == "add") {
// If the bookmark exists already, edit the original
if ($bookmarkservice->bookmarkExists(stripslashes(GET_ADDRESS), $currentUserID)) {
- $bookmark =& $bookmarkservice->getBookmarks(0, NULL, $currentUserID, NULL, NULL, NULL, NULL, NULL, NULL, $bookmarkservice->getHash(stripslashes(GET_ADDRESS)));
+ $bookmark = $bookmarkservice->getBookmarks(0, NULL, $currentUserID, NULL, NULL, NULL, NULL, NULL, NULL, $bookmarkservice->getHash(stripslashes(GET_ADDRESS)));
$popup = (GET_POPUP!='') ? '?popup=1' : '';
header('Location: '. createURL('edit', $bookmark['bookmarks'][0]['bId'] . $popup));
exit();
@@ -250,7 +250,7 @@ if ($templatename == 'editbookmark.tpl') {
//$tplVars['sidebar_blocks'][] = 'popular';
$tplVars['userid'] = $userid;
- $tplVars['userinfo'] =& $userinfo;
+ $tplVars['userinfo'] = $userinfo;
$tplVars['user'] = $user;
$tplVars['range'] = 'user';
@@ -296,9 +296,9 @@ if ($templatename == 'editbookmark.tpl') {
$tplVars['start'] = $start;
$tplVars['bookmarkCount'] = $start + 1;
- $bookmarks =& $bookmarkservice->getBookmarks($start, $perpage, $userid, $cat, null, getSortOrder());
+ $bookmarks = $bookmarkservice->getBookmarks($start, $perpage, $userid, $cat, null, getSortOrder());
$tplVars['total'] = $bookmarks['total'];
- $tplVars['bookmarks'] =& $bookmarks['bookmarks'];
+ $tplVars['bookmarks'] = $bookmarks['bookmarks'];
$tplVars['cat_url'] = createURL('bookmarks', '%s/%s');
$tplVars['nav_url'] = createURL('bookmarks', '%s/%s%s');
if ($userservice->isLoggedOn() && $user == $currentUsername) {
diff --git a/www/edit.php b/www/edit.php
index cbfa30b..cbdcbcc 100644
--- a/www/edit.php
+++ b/www/edit.php
@@ -108,7 +108,7 @@ if (!($row = $bookmarkservice->getBookmark(intval($bookmark), true))) {
}
$tplVars['popup'] = (GET_POPUP) ? GET_POPUP : null;
- $tplVars['row'] =& $row;
+ $tplVars['row'] = $row;
$tplVars['formaction'] = createURL('edit', $bookmark);
$tplVars['btnsubmit'] = T_('Save Changes');
$tplVars['showdelete'] = true;
diff --git a/www/history.php b/www/history.php
index 489d932..50cf3eb 100644
--- a/www/history.php
+++ b/www/history.php
@@ -55,9 +55,9 @@ if (intval(GET_PAGE) > 1) {
$start = 0;
}
-if ($bookmark =& $bookmarkservice->getBookmarkByHash($hash)) {
+if ($bookmark = $bookmarkservice->getBookmarkByHash($hash)) {
// Template variables
- $bookmarks =& $bookmarkservice->getBookmarks($start, $perpage, NULL, NULL, NULL, getSortOrder(), NULL, NULL, NULL, $hash);
+ $bookmarks = $bookmarkservice->getBookmarks($start, $perpage, NULL, NULL, NULL, getSortOrder(), NULL, NULL, NULL, $hash);
$tplVars['pagetitle'] = T_('History') .': '. $bookmark['bAddress'];
$tplVars['subtitle'] = sprintf(T_('History for %s'), $bookmark['bAddress']);
$tplVars['loadjs'] = true;
@@ -65,7 +65,7 @@ if ($bookmark =& $bookmarkservice->getBookmarkByHash($hash)) {
$tplVars['start'] = $start;
$tplVars['bookmarkCount'] = $start + 1;
$tplVars['total'] = $bookmarks['total'];
- $tplVars['bookmarks'] =& $bookmarks['bookmarks'];
+ $tplVars['bookmarks'] = $bookmarks['bookmarks'];
$tplVars['hash'] = $hash;
$tplVars['popCount'] = 50;
$tplVars['sidebar_blocks'] = array('common');
diff --git a/www/index.php b/www/index.php
index 7fbb84c..007aae0 100644
--- a/www/index.php
+++ b/www/index.php
@@ -100,7 +100,7 @@ $tplVars['bookmarkCount'] = $start + 1;
$bookmarks = $bookmarkservice->getBookmarks($start, $perpage, NULL, NULL, NULL, getSortOrder(), NULL, 0, NULL);
$tplVars['total'] = $bookmarks['total'];
-$tplVars['bookmarks'] =& $bookmarks['bookmarks'];
+$tplVars['bookmarks'] = $bookmarks['bookmarks'];
$tplVars['cat_url'] = createURL('bookmarks', '%1$s/%2$s');
$tplVars['nav_url'] = createURL('index', '%3$s');
$tplVars['summarizeLinkedTags'] = true;
diff --git a/www/populartags.php b/www/populartags.php
index 5b69b86..20b1b53 100644
--- a/www/populartags.php
+++ b/www/populartags.php
@@ -61,7 +61,7 @@ if (isset($user) && $user != '') {
}
$tags = $b2tservice->getPopularTags($userid, 150);
-$tplVars['tags'] =& $b2tservice->tagCloud($tags, 5, 90, 225, getSortOrder('alphabet_asc'));
+$tplVars['tags'] = $b2tservice->tagCloud($tags, 5, 90, 225, getSortOrder('alphabet_asc'));
$tplVars['user'] = $user;
if (isset($userid)) {
diff --git a/www/profile.php b/www/profile.php
index 63f4da8..6a4222e 100644
--- a/www/profile.php
+++ b/www/profile.php
@@ -56,7 +56,7 @@ if ($user) {
$templateservice->loadTemplate('error.404.tpl', $tplVars);
exit();
} else {
- $userid =& $userinfo->getId();
+ $userid = $userinfo->getId();
}
}
} else {
diff --git a/www/rss.php b/www/rss.php
index 1f88944..6f376ec 100644
--- a/www/rss.php
+++ b/www/rss.php
@@ -82,7 +82,7 @@ if ($user && $user != 'all') {
$userid = intval($user);
} else {
if ($userinfo = $userservice->getUserByUsername($user)) {
- $userid =& $userinfo[$userservice->getFieldName('primary')];
+ $userid = $userinfo[$userservice->getFieldName('primary')];
/* if user is not logged in and has valid privateKey */
if (!$userservice->isLoggedOn()) {
if ($privateKey != null) {
diff --git a/www/search.php b/www/search.php
index a5c13e3..e4977ad 100644
--- a/www/search.php
+++ b/www/search.php
@@ -115,7 +115,7 @@ if (is_null($terms)) {
}
}
-$bookmarks =& $bookmarkservice->getBookmarks(
+$bookmarks = $bookmarkservice->getBookmarks(
$start, $perpage, $s_user, NULL, $terms, getSortOrder(),
$s_watchlist, $s_start, $s_end
);
@@ -147,7 +147,7 @@ $tplVars['terms'] = $terms;
$tplVars['pagetitle'] = T_('Search Bookmarks');
$tplVars['bookmarkCount'] = $start + 1;
$tplVars['total'] = $bookmarks['total'];
-$tplVars['bookmarks'] =& $bookmarks['bookmarks'];
+$tplVars['bookmarks'] = $bookmarks['bookmarks'];
$tplVars['cat_url'] = createURL('tags', '%2$s');
$tplVars['nav_url'] = createURL('search', $range .'/'. $terms .'/%3$s');
diff --git a/www/tags.php b/www/tags.php
index c56b97f..3e2cd5f 100644
--- a/www/tags.php
+++ b/www/tags.php
@@ -109,9 +109,9 @@ $tplVars['currenttag'] = $cat;
$tplVars['sidebar_blocks'] = array('linked', 'related', 'menu2');//array('linked', 'related', 'popular');
$tplVars['subtitlehtml'] = $pagetitle;
$tplVars['bookmarkCount'] = $start + 1;
-$bookmarks =& $bookmarkservice->getBookmarks($start, $perpage, NULL, $cat, NULL, getSortOrder());
+$bookmarks = $bookmarkservice->getBookmarks($start, $perpage, NULL, $cat, NULL, getSortOrder());
$tplVars['total'] = $bookmarks['total'];
-$tplVars['bookmarks'] =& $bookmarks['bookmarks'];
+$tplVars['bookmarks'] = $bookmarks['bookmarks'];
$tplVars['cat_url'] = createURL('bookmarks', '%1$s/%2$s');
$tplVars['nav_url'] = createURL('tags', '%2$s%3$s');
diff --git a/www/users.php b/www/users.php
index a357b56..9d6c655 100644
--- a/www/users.php
+++ b/www/users.php
@@ -49,7 +49,7 @@ $tplVars['loadjs'] = true;
$tplVars['sidebar_blocks'] = array('recent', 'popular');
$tplVars['subtitle'] = filter($pagetitle);
-$tplVars['users'] =& $userservice->getUsers();
+$tplVars['users'] = $userservice->getUsers();
//$tplVars['cat_url'] = createURL('tags', '%2$s');
//$tplVars['nav_url'] = createURL('tags', '%2$s%3$s');
diff --git a/www/watchlist.php b/www/watchlist.php
index ded6782..667cbe9 100644
--- a/www/watchlist.php
+++ b/www/watchlist.php
@@ -62,7 +62,7 @@ if ($user) {
$templateservice->loadTemplate('error.404.tpl', $tplVars);
exit();
} else {
- $userid =& $userinfo->getId();
+ $userid = $userinfo->getId();
}
}
}
@@ -73,7 +73,7 @@ $tplVars['loadjs'] = true;
if ($user) {
$tplVars['user'] = $user;
$tplVars['userid'] = $userid;
- $tplVars['userinfo'] =& $userinfo;
+ $tplVars['userinfo'] = $userinfo;
// Pagination
$perpage = getPerPageCount($currentUser);
@@ -91,12 +91,12 @@ if ($user) {
$tplVars['start'] = $start;
$tplVars['bookmarkCount'] = $start + 1;
- $bookmarks =& $bookmarkservice->getBookmarks($start, $perpage, $userid, NULL, NULL, getSortOrder(), true);
+ $bookmarks = $bookmarkservice->getBookmarks($start, $perpage, $userid, NULL, NULL, getSortOrder(), true);
$tplVars['sidebar_blocks'] = array('watchlist');
$tplVars['watched'] = true;
$tplVars['total'] = $bookmarks['total'];
- $tplVars['bookmarks'] =& $bookmarks['bookmarks'];
+ $tplVars['bookmarks'] = $bookmarks['bookmarks'];
$tplVars['cat_url'] = createURL('tags', '%2$s');
$tplVars['nav_url'] = createURL('watchlist', '%s/%s%s');