Skip to content
Snippets Groups Projects
Commit f47b354a authored by Chris Burschka's avatar Chris Burschka
Browse files

Whoops. How did I not notice this in the last two years?

git-svn-id: http://svn.ermarian.net/drupal/modules/xbbcode/branches/DRUPAL-6@418 e07e5eb3-9d27-0410-88b2-edc8e7ca7259
parent 60f902bc
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,8 @@ EOF;
}
function xbbcode_xbbcode_render($tag_name, $args, $content) {
$code = xbbcode_get_custom_tag($tag_name);
$tag = xbbcode_get_custom_tag($tag_name);
$code = $tag['replacewith'];
if (is_array($args)) {
$replace = array_keys($args);
$with = array_values($args);
......@@ -193,7 +194,7 @@ EOF;
$replace[] = '{content}';
$with[] = addslashes($content);
$code = str_replace($replace, $with, $code);
$code = str_replace($replace, $with, $code);
return drupal_eval($code);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment