aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pdledit.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-06-25 06:30:15 -0500
committerAndrew Manning <tamanning@zoho.com>2016-06-25 06:30:15 -0500
commit83a42afddf6e5ffd04028431b36aed6ecadf5b9d (patch)
tree26d7251cd032fb627c80345cc9cbc4384a66f46f /Zotlabs/Module/Pdledit.php
parent780f83a118146cf67509574ac88024c2cb03cf3a (diff)
parentec3651d216a5eafcb8019825bc6751e6ffa8c198 (diff)
downloadvolse-hubzilla-83a42afddf6e5ffd04028431b36aed6ecadf5b9d.tar.gz
volse-hubzilla-83a42afddf6e5ffd04028431b36aed6ecadf5b9d.tar.bz2
volse-hubzilla-83a42afddf6e5ffd04028431b36aed6ecadf5b9d.zip
Merge remote-tracking branch 'upstream/dev' into wiki
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;