From a39231f952f34ef0eade5f1126b7d98e98308a83 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Sat, 24 Mar 2012 14:29:37 +1300 Subject: [PATCH] MINOR: add icon to ajax button in AssetAdmin --- code/controllers/AssetAdmin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }