]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/doc.php
enable confirmation queue
[quix0rs-gnu-social.git] / actions / doc.php
index 0ace0424668f24f837b20fdba73412359747bafc..728bf24b1c842bafb626049c515ae3877e4deeed 100644 (file)
@@ -19,8 +19,6 @@
 
 if (!defined('LACONICA')) { exit(1); }
 
-require_once('markdown.php');
-
 class DocAction extends Action {
 
        function handle($args) {
@@ -31,9 +29,10 @@ class DocAction extends Action {
                        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
+}