diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-11-01 12:08:59 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-11-01 12:08:59 +0100 |
commit | 11cdc36bcc7414002c2e72fd0c45d285d9515f0c (patch) | |
tree | ffcb15dd536800b67c9918756e41bb4accde3320 /Zotlabs/Module/Pdledit.php | |
parent | b28ff509b1f7c95ac723fb1b2a20929da2ba7d3d (diff) | |
parent | 22d45a8d1ecfa0a0a2b8429ec3233e7099e84b66 (diff) | |
download | volse-hubzilla-11cdc36bcc7414002c2e72fd0c45d285d9515f0c.tar.gz volse-hubzilla-11cdc36bcc7414002c2e72fd0c45d285d9515f0c.tar.bz2 volse-hubzilla-11cdc36bcc7414002c2e72fd0c45d285d9515f0c.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Pdledit.php')
-rw-r--r-- | Zotlabs/Module/Pdledit.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Zotlabs/Module/Pdledit.php b/Zotlabs/Module/Pdledit.php index f8af470ac..9b86b599b 100644 --- a/Zotlabs/Module/Pdledit.php +++ b/Zotlabs/Module/Pdledit.php @@ -77,8 +77,10 @@ class Pdledit extends \Zotlabs\Web\Controller { } $t = get_pconfig(local_channel(),'system',$module); - if(! $t) - $t = file_get_contents(theme_include($module)); + $s = file_get_contents(theme_include($module)); + if(! $t) { + $t = $s; + } if(! $t) { notice( t('Layout not found.') . EOL); return ''; @@ -89,7 +91,9 @@ class Pdledit extends \Zotlabs\Web\Controller { '$mname' => t('Module Name:'), '$help' => t('Layout Help'), '$another' => t('Edit another layout'), + '$original' => t('System layout'), '$module' => argv(1), + '$src' => $s, '$content' => htmlspecialchars($t,ENT_COMPAT,'UTF-8'), '$submit' => t('Submit') )); |