Commit c7268958 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #540 from psykzz/patch-1

Improved consistancy
parents 15e93564 930d5794
...@@ -603,7 +603,7 @@ class FileAdmin(BaseView, ActionsMixin): ...@@ -603,7 +603,7 @@ class FileAdmin(BaseView, ActionsMixin):
try: try:
shutil.rmtree(full_path) shutil.rmtree(full_path)
self.on_directory_delete(full_path, path) self.on_directory_delete(full_path, path)
flash(gettext('Directory "%s" was successfully deleted.' % path)) flash(gettext('Directory "%(path)s" was successfully deleted.', path=path))
except Exception as ex: except Exception as ex:
flash(gettext('Failed to delete directory: %(error)s', error=ex), 'error') flash(gettext('Failed to delete directory: %(error)s', error=ex), 'error')
else: else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment