X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fdoc.php;h=728bf24b1c842bafb626049c515ae3877e4deeed;hb=d40455405afe5621bb46d7cce5f118c13126bb60;hp=0697b25d4f092e224b4ec6a607f1cf6b153b2381;hpb=0cabc70341727a2e017674278a33ddc970e3e2ce;p=quix0rs-gnu-social.git diff --git a/actions/doc.php b/actions/doc.php index 0697b25d4f..728bf24b1c 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()) { + if (!file_exists($filename)) { common_user_error(_t('No such document.')); return; } - $output = Markdown(file_get_contents($filename)); + $c = file_get_contents($filename); + $output = common_markup_to_html($c); common_show_header(_t(ucfirst($title))); common_raw($output); common_show_footer(); } -} \ No newline at end of file +}