Update (post): only show table of contents if there are at least 3 toc items
This commit is contained in:
@@ -30,7 +30,7 @@ public static function readFile($storage_driver, $relative_directory, $filename)
|
||||
$filepath = rtrim($relative_directory, '/').'/'.$filename;
|
||||
|
||||
try {
|
||||
return Storage::disk($storage_driver)->get($filepath);
|
||||
return Storage::disk($storage_driver)->get($filepath);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
@@ -39,7 +39,6 @@ public static function readFile($storage_driver, $relative_directory, $filename)
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static function uploadJson($storage_driver, $relative_directory, $filename, $jsonData)
|
||||
{
|
||||
$jsonString = json_encode($jsonData, JSON_PRETTY_PRINT);
|
||||
|
||||
Reference in New Issue
Block a user