diff options
author | Mario <mario@mariovavti.com> | 2021-01-18 14:10:38 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-18 14:10:38 +0000 |
commit | 8f88543478ecdf80b01757a0f09bb2cbea50c7b8 (patch) | |
tree | db2b0897564fd39c9f34fc83c32cf70f71dd854e /Zotlabs/Daemon | |
parent | f1ac5bb667164a93f4969c254aa2010e7c368dd8 (diff) | |
download | volse-hubzilla-8f88543478ecdf80b01757a0f09bb2cbea50c7b8.tar.gz volse-hubzilla-8f88543478ecdf80b01757a0f09bb2cbea50c7b8.tar.bz2 volse-hubzilla-8f88543478ecdf80b01757a0f09bb2cbea50c7b8.zip |
more cleanup daemon/importdoc
Diffstat (limited to 'Zotlabs/Daemon')
-rwxr-xr-x | Zotlabs/Daemon/Importdoc.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Zotlabs/Daemon/Importdoc.php b/Zotlabs/Daemon/Importdoc.php index 0ca589e4a..9e818e2b3 100755 --- a/Zotlabs/Daemon/Importdoc.php +++ b/Zotlabs/Daemon/Importdoc.php @@ -5,7 +5,7 @@ namespace Zotlabs\Daemon; class Importdoc { - static public function run($argc,$argv) { + static public function run($argc, $argv) { require_once('include/help.php'); @@ -16,20 +16,20 @@ class Importdoc { static public function update_docs_dir($s) { $f = basename($s); $d = dirname($s); - if($s === 'doc/html') + if ($s === 'doc/html') return; $files = glob("$d/$f"); - if($files) { - foreach($files as $fi) { - if($fi === 'doc/html') { + if ($files) { + foreach ($files as $fi) { + if ($fi === 'doc/html') { continue; } - if(is_dir($fi)) { + if (is_dir($fi)) { self::update_docs_dir("$fi/*"); } else { // don't update media content - if(strpos(z_mime_content_type($fi),'text') === 0) { + if (strpos(z_mime_content_type($fi), 'text') === 0) { store_doc_file($fi); } } |