aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Froese <greg.froese@gmail.com>2009-05-10 23:39:20 +0000
committerGreg Froese <greg.froese@gmail.com>2009-05-10 23:39:20 +0000
commit076994be737bc012ea0017c2a5fa2af842911cce (patch)
tree599b1f8ea9c1934aae26a5f8dd9860f2147df53d
parent0911bafdcddddd2104e696e6fb44cd77247ade7b (diff)
downloadelgg-076994be737bc012ea0017c2a5fa2af842911cce.tar.gz
elgg-076994be737bc012ea0017c2a5fa2af842911cce.tar.bz2
commented rating code - not used yet
-rw-r--r--viewimage.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/viewimage.php b/viewimage.php
index 5b51725d7..8534e3d30 100644
--- a/viewimage.php
+++ b/viewimage.php
@@ -38,6 +38,7 @@
$viewer = get_loggedin_user();
+ /*
$metadatas = get_metadata_for_entity($photo_guid);
$rating = 0;
foreach($metadatas as $metadata) {
@@ -45,6 +46,7 @@
if($metadata["name"] == "rating") $rating = $metadata["value"];
}
}
+ */
if (can_write_to_container(0, $album->container_guid)) {
add_submenu_item( elgg_echo('image:edit'),
@@ -60,7 +62,7 @@
$title = $photo->title . " - views: $views[value]";
$area2 = elgg_view_title($title);
$area2 .= elgg_view_entity($photo, true);
- $area2 .= "<a href='$CONFIG->wwwroot" . "pg/photos/rate/$photo_guid'>Rate *</a>";
+// $area2 .= "<a href='$CONFIG->wwwroot" . "pg/photos/rate/$photo_guid'>Rate *</a>";
$body = elgg_view_layout('two_column_left_sidebar', '', $area2);