Permalink
Browse files

Update templateupload.php

Fixed the problems with template parsing.
  • Loading branch information...
skinkie committed Jul 31, 2012
1 parent a8d6c07 commit 1c17dce2b2de59822b9e187bb91aa95fa23b988f
Showing with 2 additions and 2 deletions.
  1. +2 −2 templateupload.php
View
@@ -9,13 +9,13 @@
if (isset($_FILES['userfile']['tmp_name'])) {
if (substr($_FILES['userfile']['name'], -4) == '.svg') {
$svg = file_get_contents($_FILES['userfile']['tmp_name']);
- $svg = str_replace(array('TITLE',
+ $svg = str_replace(array('NORMAL_TITLE',
'CATEGORY_TITLE',
'CATEGORY_IMAGE',
'PHOTO',
'PARA'),
array('<xsl:value-of select="/article/title" />',
- '{<xsl:value-of select="/article/category/img/title" />',
+ '<xsl:value-of select="/article/category/title" />',
'{article/category/img/src}',
'{/article/photo}',
'<xsl:apply-templates select="/article/para" />'),

0 comments on commit 1c17dce

Please sign in to comment.