aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pdledit.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-24 11:25:20 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-24 11:25:20 +0200
commitc8ae04a96a38b7351c2ac506c836bb9b1734d58e (patch)
treeb15646cc7746f8b18dc844a9d7c8836c29bc7896 /Zotlabs/Module/Pdledit.php
parent39b14b6b811ec65f8c8a812397f9ee04877cd53d (diff)
parentc809b6f95e0c9717cba9cfad62b74104fbcc878d (diff)
downloadvolse-hubzilla-c8ae04a96a38b7351c2ac506c836bb9b1734d58e.tar.gz
volse-hubzilla-c8ae04a96a38b7351c2ac506c836bb9b1734d58e.tar.bz2
volse-hubzilla-c8ae04a96a38b7351c2ac506c836bb9b1734d58e.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'Zotlabs/Module/Pdledit.php')
-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;