1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Bugtracker #4206 - doubled up line/bad parameters

This commit is contained in:
e107steved
2007-11-10 15:31:58 +00:00
parent 25524eb2f4
commit 8815507e0b

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/page.php,v $ | $Source: /cvs_backup/e107_0.8/page.php,v $
| $Revision: 1.13 $ | $Revision: 1.14 $
| $Date: 2007-08-19 21:46:20 $ | $Date: 2007-11-10 15:31:58 $
| $Author: e107coders $ | $Author: e107steved $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
@@ -78,6 +78,7 @@ else
} }
} }
$page -> title = $tmp['title'];
if($com = $page -> pageComment($comment_flag)) if($com = $page -> pageComment($comment_flag))
{ {
echo $com['comment'].$com['comment_form']; echo $com['comment'].$com['comment_form'];
@@ -193,6 +194,7 @@ class pageClass
$gen = new convert; $gen = new convert;
$text = ''; // Notice removal $text = ''; // Notice removal
$ptitle = "";
if($page_author) if($page_author)
{ {
@@ -201,7 +203,7 @@ class pageClass
if($this -> title) if($this -> title)
{ {
$text .= "<div class='cpage_title'>".$this -> title."</div>"; $ptitle = "<div class='cpage_title'>".$this -> title."</div>";
} }
$text .= $this -> pageToRender; $text .= $this -> pageToRender;
@@ -209,7 +211,7 @@ class pageClass
$text .= $this -> pageRating($page_rating_flag); $text .= $this -> pageRating($page_rating_flag);
$ret['title'] = $page_title; $ret['title'] = $page_title;
$ret['text'] = $text; $ret['text'] = $ptitle."<div class='cpage_body'>".$text."</div>";
$ret['comment_flag'] = $page_comment_flag; $ret['comment_flag'] = $page_comment_flag;
$ret['err'] = FALSE; $ret['err'] = FALSE;
$ret['cachecontrol'] = (isset($page_password) && !$page_password); // Don't cache password protected pages $ret['cachecontrol'] = (isset($page_password) && !$page_password); // Don't cache password protected pages
@@ -367,8 +369,7 @@ class pageClass
$e107cache->clear("comment.page.".$this -> pageID); $e107cache->clear("comment.page.".$this -> pageID);
$e107cache->clear($cacheString); $e107cache->clear($cacheString);
} }
return $cobj->compose_comment("page", "comment", $this -> pageID, 0, $this -> title);
return $cobj->compose_comment("page", "comment", $this -> pageID, $width="", $subject="", $showrate=FALSE, $return=TRUE);
} }
} }