diff --git a/e107_handlers/rate_class.php b/e107_handlers/rate_class.php
index 70b9e21b7..7d731f098 100644
--- a/e107_handlers/rate_class.php
+++ b/e107_handlers/rate_class.php
@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/rate_class.php,v $
-| $Revision: 1.1.1.1 $
-| $Date: 2006-12-02 04:33:56 $
-| $Author: mcfly_e107 $
+| $Revision: 1.2 $
+| $Date: 2006-12-07 17:47:20 $
+| $Author: sweetas $
+----------------------------------------------------------------------------+
*/
@@ -176,18 +176,19 @@ class rater {
//userid : used to calculate a users given rating
//nojump : boolean, if present no urljump will be used (needed in comment_rating system)
+ global $imode;
$rate = "";
if($ratearray = $this -> getrating($table, $id, $userid)){
if($ratearray[1] > 0){
for($c=1; $c<= $ratearray[1]; $c++){
- $rate .= "
";
+ $rate .= "
";
}
if($ratearray[1] < 10){
for($c=9; $c>=$ratearray[1]; $c--){
- $rate .= "
";
+ $rate .= "
";
}
}
- $rate .= "
";
+ $rate .= "
";
if($ratearray[2] == ""){ $ratearray[2] = 0; }
$rate .= " ".$ratearray[1].".".$ratearray[2];
if(!$userid){
diff --git a/e107_plugins/content/content_shortcodes.php b/e107_plugins/content/content_shortcodes.php
index db979c5d6..33575b5eb 100644
--- a/e107_plugins/content/content_shortcodes.php
+++ b/e107_plugins/content/content_shortcodes.php
@@ -103,21 +103,21 @@ return $CONTENT_TOP_TABLE_AUTHOR;
SC_END
SC_BEGIN CONTENT_TOP_TABLE_RATING
-global $CONTENT_TOP_TABLE_RATING, $row;
+global $CONTENT_TOP_TABLE_RATING, $row, $imode;
$row['rate_avg'] = round($row['rate_avg'], 1);
$row['rate_avg'] = (strlen($row['rate_avg'])>1 ? $row['rate_avg'] : $row['rate_avg'].".0");
$tmp = explode(".", $row['rate_avg']);
$rating = "";
$rating .= $row['rate_avg']." ";
for($c=1; $c<= $tmp[0]; $c++){
- $rating .= "
";
+ $rating .= "
";
}
if($tmp[0] < 10){
for($c=9; $c>=$tmp[0]; $c--){
- $rating .= "
";
+ $rating .= "
";
}
}
-$rating .= "
";
+$rating .= "
";
return $rating;
SC_END
diff --git a/e107_plugins/links_page/link_shortcodes.php b/e107_plugins/links_page/link_shortcodes.php
index bf7a3bd46..e3d6b6913 100644
--- a/e107_plugins/links_page/link_shortcodes.php
+++ b/e107_plugins/links_page/link_shortcodes.php
@@ -373,20 +373,20 @@ SC_END
// LINK_RATED_TABLE ------------------------------------------------
SC_BEGIN LINK_RATED_RATING
-global $LINK_RATED_RATING, $rowl;
+global $LINK_RATED_RATING, $rowl, $imode;
$tmp = explode(".", $rowl['rate_avg']);
$one = $tmp[0];
$two = round($tmp[1],1);
$rating = $one.".".$two." ";
for($c=1; $c<= $one; $c++){
- $rating .= "
";
+ $rating .= "
";
}
if($one < 10){
for($c=9; $c>=$one; $c--){
- $rating .= "
";
+ $rating .= "
";
}
}
-$rating .= "
";
+$rating .= "
";
return $rating;
SC_END
diff --git a/page.php b/page.php
index 35522badc..aa64622ca 100644
--- a/page.php
+++ b/page.php
@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/page.php,v $
-| $Revision: 1.2 $
-| $Date: 2006-12-07 15:41:49 $ - mods to make password protected pages work
+| $Revision: 1.3 $
+| $Date: 2006-12-07 17:47:20 $ - mods to make password protected pages work
| $Author: sweetas $
+----------------------------------------------------------------------------+
*/
@@ -285,6 +285,7 @@ class pageClass
function pageRating($page_rating_flag)
{
+ global $imode;
if($page_rating_flag)
{
require_once(e_HANDLER."rate_class.php");
@@ -297,7 +298,7 @@ class pageClass
{
$ratearray[2] = 0;
}
- $rate_text .= "
\n";
+ $rate_text .= "
\n";
$rate_text .= " ".$ratearray[1].".".$ratearray[2]." - ".$ratearray[0]." ";
$rate_text .= ($ratearray[0] == 1 ? "vote" : "votes");
}