aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-03 21:59:26 -0700
committerredmatrix <git@macgirvin.com>2016-05-03 21:59:26 -0700
commit1685548a4cff333b2f923960f33a7f87394afcc5 (patch)
treefb081a47acbeaf942851e261fb7090a53fcaa820 /Zotlabs/Module
parent191298ec93968c8c5804c021d320c536dac32c12 (diff)
downloadvolse-hubzilla-1685548a4cff333b2f923960f33a7f87394afcc5.tar.gz
volse-hubzilla-1685548a4cff333b2f923960f33a7f87394afcc5.tar.bz2
volse-hubzilla-1685548a4cff333b2f923960f33a7f87394afcc5.zip
ensure that important system fields are passed through the appman editor
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Appman.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Module/Appman.php b/Zotlabs/Module/Appman.php
index 96e4cdd87..b0dd887f4 100644
--- a/Zotlabs/Module/Appman.php
+++ b/Zotlabs/Module/Appman.php
@@ -23,6 +23,8 @@ class Appman extends \Zotlabs\Web\Controller {
'photo' => escape_tags($_REQUEST['photo']),
'version' => escape_tags($_REQUEST['version']),
'price' => escape_tags($_REQUEST['price']),
+ 'requires' => escape_tags($_REQUEST['requires']),
+ 'system' => intval($_REQUEST['system']),
'sig' => escape_tags($_REQUEST['sig'])
);
@@ -64,7 +66,7 @@ class Appman extends \Zotlabs\Web\Controller {
}
- function get() {
+ function get() {
if(! local_channel()) {
notice( t('Permission denied.') . EOL);
@@ -99,6 +101,8 @@ class Appman extends \Zotlabs\Web\Controller {
'$version' => array('version', t('Version ID'),(($app) ? $app['app_version'] : ''), ''),
'$price' => array('price', t('Price of app'),(($app) ? $app['app_price'] : ''), ''),
'$page' => array('page', t('Location (URL) to purchase app'),(($app) ? $app['app_page'] : ''), ''),
+ '$system' => (($app) ? intval($app['app_system']) : 0),
+ '$requires' => (($app) ? $app['app_requires'] : ''),
'$embed' => $embed,
'$submit' => t('Submit')
));