From fb93ae21282c86664de6b0d94d613695b3490473 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Fri, 24 Jun 2016 02:07:12 -0700 Subject: fix pdledit "list layouts" --- Zotlabs/Module/Pdledit.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Zotlabs/Module/Pdledit.php') diff --git a/Zotlabs/Module/Pdledit.php b/Zotlabs/Module/Pdledit.php index accfb6fa1..5cb00f165 100644 --- a/Zotlabs/Module/Pdledit.php +++ b/Zotlabs/Module/Pdledit.php @@ -20,7 +20,7 @@ class Pdledit extends \Zotlabs\Web\Controller { } - function get() { + function get() { if(! local_channel()) { notice( t('Permission denied.') . EOL); @@ -32,18 +32,18 @@ class Pdledit extends \Zotlabs\Web\Controller { else { $o .= '
'; $o .= '

' . t('Edit System Page Description') . '

'; - $files = glob('mod/*'); + $files = glob('Zotlabs/Module/*.php'); if($files) { foreach($files as $f) { - $name = basename($f,'.php'); + $name = lcfirst(basename($f,'.php')); $x = theme_include('mod_' . $name . '.pdl'); if($x) { $o .= '' . $name . '
'; } } } - - $o .= '
'; + + $o .= ''; // list module pdl files return $o; -- cgit v1.2.3