trim to remove any extra dashes

This commit is contained in:
Andy Miller
2015-09-15 17:16:21 -06:00
parent cfdead2bbf
commit d4bac5a6da

View File

@@ -44,7 +44,7 @@ class ZipBackup
if (is_dir($destination)) {
$date = date('YmdHis', time());
$filename = $inflector->hyphenize($name) . '-' . $date . '.zip';
$filename = $inflector->hyphenize(trim($name)) . '-' . $date . '.zip';
$destination = rtrim($destination, DS) . DS . $filename;
}