diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index dd77b534f512d626c29011a724429aad6fd048c0..0477a65703514480a64777a732fe9ce270ca46fb 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -517,7 +517,6 @@
 		 * This will refresh the file actions on the list.
 		 */
 		_onFileActionsUpdated: function() {
-			console.log('onFileActionsUpdated');
 			var self = this;
 			this.$fileList.find('tr td.filename').each(function() {
 				self.fileActions.display($(this), true, self);
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index 1d633a655d5a2760f7d597a284940d312bf92ca8..f911f3689ebf4f959643419df5c62c6c702782f2 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -33,6 +33,10 @@ OCA.Sharing.PublicApp = {
 		// regular actions
 		fileActions.merge(OCA.Files.fileActions);
 
+		// in case apps would decide to register file actions later,
+		// replace the global object with this one
+		OCA.Files.fileActions = fileActions;
+
 		this._initialized = true;
 		this.initialDir = $('#dir').val();