|
|
|
@ -316,7 +316,9 @@ class CourseRestorer |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$title = basename($sysFolderPath); |
|
|
|
//$title = basename($sysFolderPath); |
|
|
|
|
|
|
|
$title = $document->title; |
|
|
|
|
|
|
|
|
|
|
|
// File doesn't exist in file system. |
|
|
|
// File doesn't exist in file system. |
|
|
|
if (!is_dir($sysFolderPath)) { |
|
|
|
if (!is_dir($sysFolderPath)) { |
|
|
|
// Creating directory |
|
|
|
// Creating directory |
|
|
|
@ -371,7 +373,8 @@ class CourseRestorer |
|
|
|
//continue; |
|
|
|
//continue; |
|
|
|
$visibility = $document->item_properties[0]['visibility']; |
|
|
|
$visibility = $document->item_properties[0]['visibility']; |
|
|
|
$new = '/'.substr(dirname($document->path), 9); |
|
|
|
$new = '/'.substr(dirname($document->path), 9); |
|
|
|
$title = str_replace('/', '', $new); |
|
|
|
//$title = str_replace('/', '', $new); |
|
|
|
|
|
|
|
$title = $document->title; |
|
|
|
|
|
|
|
|
|
|
|
// This code fixes the possibility for a file without a directory entry to be |
|
|
|
// This code fixes the possibility for a file without a directory entry to be |
|
|
|
$document_id = add_document( |
|
|
|
$document_id = add_document( |
|
|
|
|