From b4fcd4c7bcdf7ce1c235c177f194c7a663338a6d Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 30 Aug 2011 23:27:43 +0200 Subject: [PATCH] Show static --- couchpotato/core/plugins/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 6028c28b..0fcc0b3b 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -54,9 +54,9 @@ class Plugin(object): for f in glob.glob(os.path.join(self.plugin_path, 'static', '*')): fireEvent('register_%s' % ('script' if getExt(f) in 'js' else 'style'), path + os.path.basename(f)) - def showStatic(self, f = ''): + def showStatic(self, file = ''): d = os.path.join(self.plugin_path, 'static') - return send_from_directory(d, f) + return send_from_directory(d, file) def createFile(self, path, content):