X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fdoc.php;h=f3327048f271d09c87496f6e124af37996eadc18;hb=2abe10b8ea4b5d69fc7f6513bf465541454ca2cf;hp=0697b25d4f092e224b4ec6a607f1cf6b153b2381;hpb=0cabc70341727a2e017674278a33ddc970e3e2ce;p=quix0rs-gnu-social.git diff --git a/actions/doc.php b/actions/doc.php index 0697b25d4f..f3327048f2 100644 --- a/actions/doc.php +++ b/actions/doc.php @@ -19,21 +19,20 @@ if (!defined('LACONICA')) { exit(1); } -require_once('markdown.php'); - class DocAction extends Action { function handle($args) { parent::handle($args); $title = $this->trimmed('title'); $filename = INSTALLDIR.'/doc/'.$title; - if (!file_exists()) { - common_user_error(_t('No such document.')); + if (!file_exists($filename)) { + common_user_error(_('No such document.')); return; } - $output = Markdown(file_get_contents($filename)); - common_show_header(_t(ucfirst($title))); + $c = file_get_contents($filename); + $output = common_markup_to_html($c); + common_show_header(_(ucfirst($title))); common_raw($output); common_show_footer(); } -} \ No newline at end of file +}