We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 99d538af authored by Evan Prodromou's avatar Evan Prodromou

docfiles can take arguments

parent 551a4e83
......@@ -1931,8 +1931,9 @@ function common_confirmation_code($bits)
// convert markup to HTML
function common_markup_to_html($c)
function common_markup_to_html($c, $args=null)
$c = preg_replace('/%%arg.(\w+)%%/', "{$args['\\1']}", $c);
$c = preg_replace('/%%user.(\w+)%%/e', "common_user_property('\\1')", $c);
$c = preg_replace('/%%action.(\w+)%%/e', "common_local_url('\\1')", $c);
$c = preg_replace('/%%doc.(\w+)%%/e', "common_local_url('doc', array('title'=>'\\1'))", $c);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment