This commit is contained in:
BOHUNG 2020-01-13 16:30:28 +08:00
parent 2bd6a5de31
commit b393baab90
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ end
#Add patchfile to Admin area
@patchfile_li = File.read(app_path+"/patchfile_li.txt")
@patchfile_li_choices = File.read(app_path+"/patchfile_li_choices.txt")
@file_text = File.read(ENV['PWD']+'/app/views/shared/_side_bar.html.erb")
@file_text = File.read(ENV['PWD']+'/app/views/shared/_side_bar.html.erb')
if !@file_text.include?('<div class="patchfile sub-nav-block icons-megaphone">')
@indert_index = @file_text.index('</nav>')
@file_text.insert(@indert_index , @patchfile_li_choices)