refactor: move clone_list function to Helpers.php

- Removed the clone_list function from Disk.page, Flash.page, and Share.page.
- Added the clone_list function to Helpers.php for better organization and reusability.
This commit is contained in:
Zack Spear
2025-05-27 15:36:54 -07:00
parent 2831266e39
commit 27754ace66
4 changed files with 4 additions and 15 deletions
+4 -1
View File
@@ -566,6 +566,9 @@ function comparePCIData() {
return $changes;
}
function clone_list($disk) {
global $pools;
return strpos($disk['status'],'_NP')===false && ($disk['type']=='Data' || in_array($disk['name'],$pools));
}
?>