1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

Make calls to toHTML which use $modifiers consistent to avoid potential future problems.

This commit is contained in:
e107steved
2007-01-07 15:59:42 +00:00
parent 1843e9fed9
commit fab4a3bc10
18 changed files with 75 additions and 75 deletions

View File

@@ -395,7 +395,7 @@ if($row['content_text'] && isset($content_pref["content_cat_text"]) && $content_
$CONTENT_CAT_LIST_TABLE_TEXT = $tp->toHTML($row['content_text'], TRUE, "constants");
}else{
$rowtext = preg_replace("/\[newpage.*?]/si", " ", $row['content_text']);
$rowtext = $tp->toHTML($rowtext, TRUE, "nobreak constants");
$rowtext = $tp->toHTML($rowtext, TRUE, "nobreak, constants");
$rowtext = strip_tags($rowtext);
$words = explode(" ", $rowtext);

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/poll/admin_config.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:35:40 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2007-01-07 15:59:42 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
require_once("../../class2.php");
@@ -138,7 +138,7 @@ if ($poll_total = $sql->db_Select("polls", "*", "poll_type=1")) {
extract($row);
$text .= "<tr>
<td style='width:5%' class='forumheader3'>$poll_id</td>
<td style='width:75%' class='forumheader3'>".$tp -> toHTML($poll_title, TRUE,"no_hook emotes_off defs")."</td>
<td style='width:75%' class='forumheader3'>".$tp -> toHTML($poll_title, TRUE,"no_hook, emotes_off, defs")."</td>
<td style='width:20%; text-align:center' class='forumheader3'><div>". $rs->form_button("button", "main_edit_{$poll_id}", POLLAN_5, "onclick=\"document.location='".e_SELF."?edit.$poll_id'\""). $rs->form_button("submit", "main_delete_{$poll_id}", POLLAN_6, "onclick=\"confirm_($poll_id)\"")."
</div></td>
</tr>";

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/poll/poll_class.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:35:40 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2007-01-07 15:59:42 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -311,7 +311,7 @@ class poll
$comment_total = $sql->db_Select("comments", "*", "comment_item_id='".intval($pollArray['poll_id'])."' AND comment_type=4");
$QUESTION = $tp -> toHTML($pollArray['poll_title'], TRUE,"emotes_off defs");
$QUESTION = $tp -> toHTML($pollArray['poll_title'], TRUE,"emotes_off, defs");
$VOTE_TOTAL = POLLAN_31.": ".$voteTotal;
$COMMENTS = ($pollArray['poll_comment'] ? " <a href='".e_BASE."comment.php?comment.poll.".$pollArray['poll_id']."'>".POLLAN_27.": ".$comment_total."</a>" : "");
$OLDPOLLS = ($type == "menu" ? "<a href='".e_PLUGIN."poll/oldpolls.php'>".POLLAN_28."</a>" : "");