aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-24 02:07:12 -0700
committerredmatrix <git@macgirvin.com>2016-06-24 02:07:12 -0700
commitfb93ae21282c86664de6b0d94d613695b3490473 (patch)
tree2ef4a741d870766ad7db8905a88c308dfc76f056 /Zotlabs
parentbf4b698573c621e0aac3d3dbe09c41942eacfec2 (diff)
downloadvolse-hubzilla-fb93ae21282c86664de6b0d94d613695b3490473.tar.gz
volse-hubzilla-fb93ae21282c86664de6b0d94d613695b3490473.tar.bz2
volse-hubzilla-fb93ae21282c86664de6b0d94d613695b3490473.zip
fix pdledit "list layouts"
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Pdledit.php10
1 files changed, 5 insertions, 5 deletions
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 .= '<div class="generic-content-wrapper-styled">';
$o .= '<h1>' . t('Edit System Page Description') . '</h1>';
- $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 .= '<a href="pdledit/' . $name . '" >' . $name . '</a><br />';
}
}
}
-
- $o .= '</div>';
+
+ $o .= '</div>';
// list module pdl files
return $o;