diff --git a/code/controllers/AssetAdmin.php b/code/controllers/AssetAdmin.php index 21ebc9bc3c..f7f6f6c388 100644 --- a/code/controllers/AssetAdmin.php +++ b/code/controllers/AssetAdmin.php @@ -178,7 +178,7 @@ public function getEditForm($id = null, $fields = null) { $syncButton = new LiteralField( 'SyncButton', sprintf( - '%s', + '%s', _t('AssetAdmin.FILESYSTEMSYNCTITLE', 'Update the CMS database entries of files on the filesystem. Useful when new files have been uploaded outside of the CMS, e.g. through FTP.'), $this->Link('doSync'), _t('FILESYSTEMSYNC','Sync files') @@ -446,6 +446,7 @@ public function SiteTreeAsUL() { public function doSync() { $message = Filesystem::sync(); $this->response->addHeader('X-Status', $message); + return; }