1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

content: added parseConstants function (extending content_pref) and changed respective sanitazion of path variables

This commit is contained in:
lia
2007-04-16 22:11:09 +00:00
parent 6fda99deb2
commit 0ffa8ea9e0
8 changed files with 181 additions and 223 deletions

View File

@@ -29,9 +29,7 @@ function print_item($id)
$row['content_datestamp'] = $con -> convert_date($row['content_datestamp'], "long");
$mainparent = $aa -> getMainParent($id);
$content_pref = $aa -> getContentPref($mainparent);
$content_icon_path = $tp -> replaceConstants($content_pref["content_icon_path"]);
$content_image_path = $tp -> replaceConstants($content_pref["content_image_path"]);
$content_pref = $aa -> getContentPref($mainparent, true);
$img = $tp -> parseTemplate('{CM_IMAGES|print}', FALSE, $content_shortcodes);
$text = "
@@ -96,9 +94,7 @@ function print_item_pdf($id){
$row['content_datestamp'] = $con -> convert_date($row['content_datestamp'], "long");
$mainparent = $aa -> getMainParent(intval($id));
$content_pref = $aa -> getContentPref($mainparent);
$content_icon_path = $tp -> replaceConstants($content_pref["content_icon_path"]);
$content_image_path = $tp -> replaceConstants($content_pref["content_image_path"]);
$content_pref = $aa -> getContentPref($mainparent, true);
$img = $tp -> parseTemplate('{CM_IMAGES|pdf}', FALSE, $content_shortcodes);
//add custom and preset tags if present