fix pdledit list mode
This commit is contained in:
parent
f7d2c99a3a
commit
1577efa25e
@ -20,7 +20,7 @@ class Pdledit extends \Zotlabs\Web\Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
|
|
||||||
if(! local_channel()) {
|
if(! local_channel()) {
|
||||||
notice( t('Permission denied.') . EOL);
|
notice( t('Permission denied.') . EOL);
|
||||||
@ -32,18 +32,18 @@ class Pdledit extends \Zotlabs\Web\Controller {
|
|||||||
else {
|
else {
|
||||||
$o .= '<div class="generic-content-wrapper-styled">';
|
$o .= '<div class="generic-content-wrapper-styled">';
|
||||||
$o .= '<h1>' . t('Edit System Page Description') . '</h1>';
|
$o .= '<h1>' . t('Edit System Page Description') . '</h1>';
|
||||||
$files = glob('mod/*');
|
$files = glob('Zotlabs/Module/*.php');
|
||||||
if($files) {
|
if($files) {
|
||||||
foreach($files as $f) {
|
foreach($files as $f) {
|
||||||
$name = basename($f,'.php');
|
$name = lcfirst(basename($f,'.php'));
|
||||||
$x = theme_include('mod_' . $name . '.pdl');
|
$x = theme_include('mod_' . $name . '.pdl');
|
||||||
if($x) {
|
if($x) {
|
||||||
$o .= '<a href="pdledit/' . $name . '" >' . $name . '</a><br />';
|
$o .= '<a href="pdledit/' . $name . '" >' . $name . '</a><br />';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$o .= '</div>';
|
$o .= '</div>';
|
||||||
|
|
||||||
// list module pdl files
|
// list module pdl files
|
||||||
return $o;
|
return $o;
|
||||||
|
Reference in New Issue
Block a user