add some rescue
This commit is contained in:
1 parent
c47f65def8
commit
c3e52b08df
2 files changed
+5
-4
No files matched your search
@@ -127,8 +127,9 @@ class Admin::PatchfilesController < OrbitAdminController
|
||||
end
|
||||
end
|
||||
def getfont
|
||||
@font_array = []
|
||||
@ckeditor_path = ENV['PWD'] + '/app/assets/javascripts/ckeditor'
|
||||
@filedata = File.read(@ckeditor_path+"/config.js.erb")
|
||||
@filedata = File.read(@ckeditor_path+"/config.js.erb") rescue return
|
||||
@name_to_search ="config.font_names"
|
||||
@index_of_font = @filedata.index(@name_to_search)
|
||||
@font_str = ""
|
||||
|
||||
Reference in new issue
Block a user