use constants for data files

This commit is contained in:
Christian Mehlmauer
2013-01-19 21:33:07 +01:00
parent 5d6ce70863
commit 14be8c700f
9 changed files with 24 additions and 15 deletions

View File

@@ -48,18 +48,18 @@ class GenerateList
when "plugin"
case type
when :full
@file_name = DATA_DIR + "/plugins_full.txt"
@file_name = PLUGINS_FULL_FILE
when :popular
@file_name = DATA_DIR + "/plugins.txt"
@file_name = PLUGINS_FILE
else
raise "Unknown type"
end
when "theme"
case type
when :full
@file_name = DATA_DIR + "/themes_full.txt"
@file_name = THEMES_FULL_FILE
when :popular
@file_name = DATA_DIR + "/themes.txt"
@file_name = THEMES_FILE
else
raise "Unknown type"
end