aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-05-06 13:42:22 -0400
committerAndrew Manning <tamanning@zoho.com>2016-05-06 13:42:22 -0400
commit6950100ff4c9104fd6f980641e7118b909fd44db (patch)
tree2af109ca04cd3cd1f8a12a35bc5dbca4cffcb1ce /Zotlabs/Module
parent3011d3768cb524ccf795ed64924649a2e30a036b (diff)
parentb08fc746d81e9e486988439ae9a51918e9f9ee37 (diff)
downloadvolse-hubzilla-6950100ff4c9104fd6f980641e7118b909fd44db.tar.gz
volse-hubzilla-6950100ff4c9104fd6f980641e7118b909fd44db.tar.bz2
volse-hubzilla-6950100ff4c9104fd6f980641e7118b909fd44db.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into plugin-repo
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Page.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Module/Page.php b/Zotlabs/Module/Page.php
index 64b940b0f..8a8bc7a49 100644
--- a/Zotlabs/Module/Page.php
+++ b/Zotlabs/Module/Page.php
@@ -99,9 +99,9 @@ class Page extends \Zotlabs\Web\Controller {
\App::$page['title'] = escape_tags($r[0]['title']);
if($r[0]['item_type'] == ITEM_TYPE_PDL) {
- require_once('include/comanche.php');
- comanche_parser(get_app(),$r[0]['body']);
- \App::$pdl = $r[0]['body'];
+ \App::$comanche = new \Zotlabs\Render\Comanche();
+ \App::$comanche->parse($r[0]['body']);
+ \App::$pdl = $r[0]['body'];
}
elseif($r[0]['layout_mid']) {
$l = q("select body from item where mid = '%s' and uid = %d limit 1",
@@ -110,8 +110,8 @@ class Page extends \Zotlabs\Web\Controller {
);
if($l) {
- require_once('include/comanche.php');
- comanche_parser(get_app(),$l[0]['body']);
+ \App::$comanche = new \Zotlabs\Render\Comanche();
+ \App::$comanche->parse($l[0]['body']);
\App::$pdl = $l[0]['body'];
}
}