aboutsummaryrefslogtreecommitdiffstats
path: root/include/import.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-07-17 16:05:26 -0400
committerAndrew Manning <tamanning@zoho.com>2016-07-17 16:05:26 -0400
commitd6b28cdc575aba40c6a7861d4c2031d844a848d9 (patch)
treecf5ff33140d95189d0958af8882c69b08ac99d6a /include/import.php
parent75fb065526d11714c1c0fd8a4b6f94dea65674ae (diff)
downloadvolse-hubzilla-d6b28cdc575aba40c6a7861d4c2031d844a848d9.tar.gz
volse-hubzilla-d6b28cdc575aba40c6a7861d4c2031d844a848d9.tar.bz2
volse-hubzilla-d6b28cdc575aba40c6a7861d4c2031d844a848d9.zip
Importing webpage elements from manually entered cloud file path work. All detected elements are automatically imported.
Diffstat (limited to 'include/import.php')
-rw-r--r--include/import.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/import.php b/include/import.php
index ac52cc9cf..73a2dfff4 100644
--- a/include/import.php
+++ b/include/import.php
@@ -1223,15 +1223,15 @@ function scan_webpage_elements($path, $type, $cloud = false) {
$dirtoscan = $path;
switch ($type) {
case 'page':
- $dirtoscan .= '/pages/';
+ $dirtoscan .= 'pages/';
$json_filename = 'page.json';
break;
case 'layout':
- $dirtoscan .= '/layouts/';
+ $dirtoscan .= 'layouts/';
$json_filename = 'layout.json';
break;
case 'block':
- $dirtoscan .= '/blocks/';
+ $dirtoscan .= 'blocks/';
$json_filename = 'block.json';
break;
default :
@@ -1251,7 +1251,7 @@ function scan_webpage_elements($path, $type, $cloud = false) {
$folder = $dirtoscan . '/' . $element;
if (is_dir($folder)) {
if($cloud) {
- $jsonfilepath = get_filename_by_cloudname($json_filename, $channel, $folder);
+ $jsonfilepath = $folder . '/' . get_filename_by_cloudname($json_filename, $channel, $folder);
} else {
$jsonfilepath = $folder . '/' . $json_filename;
}