update debug
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 27s
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 27s
This commit is contained in:
17
plugin.php
17
plugin.php
@@ -673,9 +673,11 @@ function icc_upload_and_shorten_local_file_manager($dir, $url)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recursive directory removal
|
}
|
||||||
function icc_rrmdir($dir)
|
|
||||||
{
|
// Recursive directory removal
|
||||||
|
function icc_rrmdir($dir)
|
||||||
|
{
|
||||||
if (is_dir($dir)) {
|
if (is_dir($dir)) {
|
||||||
$objects = scandir($dir);
|
$objects = scandir($dir);
|
||||||
foreach ($objects as $object) {
|
foreach ($objects as $object) {
|
||||||
@@ -688,11 +690,11 @@ function icc_upload_and_shorten_local_file_manager($dir, $url)
|
|||||||
}
|
}
|
||||||
rmdir($dir);
|
rmdir($dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cleanup Temp Folders
|
// Cleanup Temp Folders
|
||||||
function icc_upload_and_shorten_cleanup_temp()
|
function icc_upload_and_shorten_cleanup_temp()
|
||||||
{
|
{
|
||||||
$temp_dir = yourls_get_option('icc_upload_share_dir');
|
$temp_dir = yourls_get_option('icc_upload_share_dir');
|
||||||
if (!$temp_dir)
|
if (!$temp_dir)
|
||||||
$temp_dir = sys_get_temp_dir();
|
$temp_dir = sys_get_temp_dir();
|
||||||
@@ -714,7 +716,6 @@ function icc_upload_and_shorten_local_file_manager($dir, $url)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for AWS SDK
|
// Check for AWS SDK
|
||||||
|
|||||||
Reference in New Issue
Block a user