diff options
author | Andrew Manning <tamanning@zoho.com> | 2018-04-08 14:25:04 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2018-04-08 14:25:04 -0400 |
commit | 4760dc9bcb7e43be9c27cf83ba5273344384813d (patch) | |
tree | 4db2967202a69d49c48d48bc29f3b098d4fc2405 /Zotlabs | |
parent | 808f3629211ff5ea6e9f53406b9c4c7c6bbb16b0 (diff) | |
download | volse-hubzilla-4760dc9bcb7e43be9c27cf83ba5273344384813d.tar.gz volse-hubzilla-4760dc9bcb7e43be9c27cf83ba5273344384813d.tar.bz2 volse-hubzilla-4760dc9bcb7e43be9c27cf83ba5273344384813d.zip |
removed Autosavetext.php file since it is not used with localStorage
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Module/Autosavetext.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/Zotlabs/Module/Autosavetext.php b/Zotlabs/Module/Autosavetext.php deleted file mode 100644 index f6bffd2a2..000000000 --- a/Zotlabs/Module/Autosavetext.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -namespace Zotlabs\Module; /** @file */ - - -class Autosavetext extends \Zotlabs\Web\Controller { - - function init() { - - if(! local_channel()) - return; - - $ret = array('success' => true); - if(array_key_exists('body',$_REQUEST) && array_key_exists('type',$_REQUEST)) { - $body = escape_tags($_REQUEST['body']); - $title = (array_key_exists('title',$_REQUEST) ? escape_tags($_REQUEST['title']) : ''); - $type = $_REQUEST['type']; - - if($body && $type === 'post') { - set_pconfig(local_channel(),'autosavetext_post','body',$body); - set_pconfig(local_channel(),'autosavetext_post','title',$title); - } - - logger('post saved.', LOGGER_DEBUG); - } - - // // push updates to channel clones - // - // if((argc() > 1) && (argv(1) === 'sync')) { - // require_once('include/zot.php'); - // build_sync_packet(); - // } - - json_return_and_die($ret); - - } - -} |