Skip to content

Commit

Permalink
Fix typo RESSOURCES_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Feb 26, 2024
1 parent 611f238 commit 4f26b70
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/state/admin/patinfo_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module ODDB
module State
module Admin
module PatinfoPdfMethods # for sequence, package
PDF_DIR = File.join(ODDB::RESSOURCES_DIR, 'patinfo')
PDF_DIR = File.join(ODDB::RESOURCES_DIR, 'patinfo')
HTML_PARSER = DRbObject.new(nil, FIPARSE_URI)
def get_patinfo_input(input)
newstate = self
Expand Down
2 changes: 1 addition & 1 deletion src/state/admin/registration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module ODDB
module State
module Admin
module FachinfoMethods
FI_FILE_DIR = File.join(ODDB::RESSOURCES_DIR, 'fachinfo')
FI_FILE_DIR = File.join(ODDB::RESOURCES_DIR, 'fachinfo')
def assign_fachinfo
if(@model.fachinfo)
State::Admin::AssignFachinfo.new(@session, @model)
Expand Down
2 changes: 1 addition & 1 deletion src/state/admin/sponsor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Admin
class Sponsor < State::Admin::Global
DIRECT_EVENT = :sponsor
VIEW = ODDB::View::Admin::Sponsor
PATH = File.join(ODDB::RESSOURCES_DIR, 'sponsor')
PATH = File.join(ODDB::RESOURCES_DIR, 'sponsor')
def update
keys = [:sponsor_until, :emails, :company_name, :logo_file, :logo_fr, :urls ]
input = user_input(keys)
Expand Down
2 changes: 1 addition & 1 deletion src/state/companies/company.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def snapback_event
end
class UserCompany < Company
VIEW = View::Companies::UserCompany
LOGO_PATH = File.join(ODDB::RESSOURCES_DIR, 'logos')
LOGO_PATH = File.join(ODDB::RESOURCES_DIR, 'logos')
def set_pass
update() # save user input
if(allowed? && !error?)
Expand Down
2 changes: 1 addition & 1 deletion src/util/csstemplate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

module ODDB
class CssTemplate
RESOURCE_PATH = File.join(ODDB::RESSOURCES_DIR)
RESOURCE_PATH = File.join(ODDB::RESOURCES_DIR)
TEMPLATE = File.join(RESOURCE_PATH, 'data/css/template.css')
FLAVORS = {
:desitin => {
Expand Down
2 changes: 1 addition & 1 deletion src/util/oddbapp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ def log_size
gc << 'S' if nr_sessions < lastsessions
gc << 'T' if threads < lastthreads
gc << 'M' if bytes < lastbytes
path = File.join(ODDB::RESSOURCES_DIR, 'downloads/' + status,
path = File.join(ODDB::RESOURCES_DIR, 'downloads/' + status,
File.dirname(__FILE__))
lines = File.readlines(path)[0,100] rescue []
lines.unshift sprintf(format, alarm,
Expand Down
2 changes: 1 addition & 1 deletion src/util/workdir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ module ODDB

# Same value for tests and application
PROJECT_ROOT = File.expand_path('../..', File.dirname(__FILE__))
RESSOURCES_DIR = File.join(PROJECT_ROOT, 'doc/resources')
RESOURCES_DIR = File.join(PROJECT_ROOT, 'doc/resources')
end
2 changes: 1 addition & 1 deletion src/view/welcomehead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module View
class WelcomeHead < HtmlGrid::Composite
include Personal
include SponsorDisplay
LOGO_PATH = File.join(ODDB::RESSOURCES_DIR, 'logos')
LOGO_PATH = File.join(ODDB::RESOURCES_DIR, 'logos')
CSS_CLASS = 'composite'
CSS_MAP = {
[0,0] => 'welcomeleft',
Expand Down

0 comments on commit 4f26b70

Please sign in to comment.