Fixed a path issue in NoLocalSettings
Added a break in the else statement, because
the only time it will go to else will be if
it hits a page (.php), in which case we don't
need to continue any further because we have
the full path needed to access resources.
(Image and link location)
Bug: T88168
Change-Id: If948b12bb09260d6ea119c3478b90225537b9786