rename OCA_Trash to OCA\Files_Trashbin
This commit is contained in:
parent
c81d7b0b90
commit
7e874af2c8
|
@ -15,7 +15,7 @@ if ($path_parts['dirname'] == '.') {
|
||||||
$timestamp = null;
|
$timestamp = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OCA_Trash\Trashbin::delete($filename, $timestamp)) {
|
if (OCA\Files_Trashbin\Trashbin::delete($filename, $timestamp)) {
|
||||||
error_log("feinifeini");
|
error_log("feinifeini");
|
||||||
OCP\JSON::success(array("data" => array("filename" => $file)));
|
OCP\JSON::success(array("data" => array("filename" => $file)));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -22,7 +22,7 @@ foreach ($list as $file) {
|
||||||
$timestamp = null;
|
$timestamp = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !OCA_Trash\Trashbin::restore($file, $filename, $timestamp) ) {
|
if ( !OCA\Files_Trashbin\Trashbin::restore($file, $filename, $timestamp) ) {
|
||||||
$error[] = $filename;
|
$error[] = $filename;
|
||||||
} else {
|
} else {
|
||||||
$success[$i]['filename'] = $file;
|
$success[$i]['filename'] = $file;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
OC::$CLASSPATH['OCA_Trash\Hooks'] = 'apps/files_trashbin/lib/hooks.php';
|
OC::$CLASSPATH['OCA\Files_Trashbin\Hooks'] = 'apps/files_trashbin/lib/hooks.php';
|
||||||
OC::$CLASSPATH['OCA_Trash\Trashbin'] = 'apps/files_trashbin/lib/trash.php';
|
OC::$CLASSPATH['OCA\Files_Trashbin\Trashbin'] = 'apps/files_trashbin/lib/trash.php';
|
||||||
|
|
||||||
|
|
||||||
OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA_Trash\Hooks", "remove_hook");
|
OCP\Util::connectHook('OC_Filesystem', 'delete', "OCA\Files_Trashbin\Hooks", "remove_hook");
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
* This class contains all hooks.
|
* This class contains all hooks.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OCA_Trash;
|
namespace OCA\Files_Trashbin;
|
||||||
|
|
||||||
class Hooks {
|
class Hooks {
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OCA_Trash;
|
namespace OCA\Files_Trashbin;
|
||||||
|
|
||||||
class Trashbin {
|
class Trashbin {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue