aboutsummaryrefslogtreecommitdiffstats
path: root/include/importdoc.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-01 17:06:58 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-01 17:06:58 -0700
commit3852b5ce7fe83cce93c0826a92c378a589bc8664 (patch)
tree26b3d216c9f4fb284d64902a593c5b66a31e47ab /include/importdoc.php
parent1447499776ce07bf48b76435a23de704952e6aa2 (diff)
downloadvolse-hubzilla-3852b5ce7fe83cce93c0826a92c378a589bc8664.tar.gz
volse-hubzilla-3852b5ce7fe83cce93c0826a92c378a589bc8664.tar.bz2
volse-hubzilla-3852b5ce7fe83cce93c0826a92c378a589bc8664.zip
separate objs/things from taxonomy
Diffstat (limited to 'include/importdoc.php')
-rwxr-xr-xinclude/importdoc.php22
1 files changed, 16 insertions, 6 deletions
diff --git a/include/importdoc.php b/include/importdoc.php
index 9cce35c50..10f868697 100755
--- a/include/importdoc.php
+++ b/include/importdoc.php
@@ -1,17 +1,30 @@
<?php
+
+
require_once('include/cli_startup.php');
-cli_startup();
-require_once('mod/help.php');
+function importdoc_run($argv, $argc){
+
+ cli_startup();
+
+ require_once('mod/help.php');
+
+
+ update_docs_dir('doc/*');
+
+}
+if (array_search(__file__,get_included_files())===0){
+ importdoc_run($argv,$argc);
+ killme();
+}
function update_docs_dir($s) {
$f = basename($s);
$d = dirname($s);
if($s === 'doc/html')
return;
-
$files = glob("$d/$f");
if($files) {
foreach($files as $fi) {
@@ -25,7 +38,4 @@ function update_docs_dir($s) {
}
}
-update_docs_dir('doc/*');
-
-