-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
I've been working on customizing the "example" theme mainly by replacing colors and images.
I customized core/img/filetypes/folder.svg and put it under themes/mytheme/core/img/filetypes/folder.svg, but the stock file continued to be used.
I suspect this is because the file is nested within a subfolder of img:
lib/private/files/Detection.phpcontains a line reading$this->mimetypeIcons[$mimetype] = $this->urlGenerator->imagePath('core', 'filetypes/folder.svg');- the imagePath function in
lib/private/URLGenerator.phpcallsbasenameon the supplied path before working through a long decision tree to decide which file to load. - The
basenamefunction inlib/private/legacy/util.phpsplits the supplied path on '/' characters, throwing away all but the filename.
Reactions are currently unavailable