Moving xmlrpc method to upload files into media module. Updating some localized string tests.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4040921
This commit is contained in:
loudej
2009-11-17 03:19:46 +00:00
parent e414c47854
commit 0cc64ebe1c
9 changed files with 105 additions and 43 deletions

View File

@@ -37,6 +37,7 @@ namespace Orchard.CmsPages.Controllers {
_templateProvider = templateProvider;
_notifier = notifier;
Logger = NullLogger.Instance;
T = NullLocalizer.Instance;
}
// That's what it takes to get the CurrentUser for a module.
@@ -290,7 +291,7 @@ namespace Orchard.CmsPages.Controllers {
public ActionResult DeleteDraft(int id) {
#warning UNIT TEST!!!!
if (!_authorizer.Authorize(Permissions.DeleteDraftPages, T("Couldn't delete draft page")))
return new HttpUnauthorizedResult();
return new HttpUnauthorizedResult();
var lastRevision = _pageManager.GetLastRevision(id);
if (!lastRevision.IsPublished())