mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 09:08:14 +08:00
18 lines
287 B
Ruby
18 lines
287 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class ProblemCheck::SubfolderEndsInSlash < ProblemCheck
|
||
|
self.priority = "low"
|
||
|
|
||
|
def call
|
||
|
return no_problem if !Discourse.base_path.end_with?("/")
|
||
|
|
||
|
problem
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def translation_key
|
||
|
"dashboard.subfolder_ends_in_slash"
|
||
|
end
|
||
|
end
|