- Wrong condition for strpos()
- Follow-up to #6953
*/
public function registerStylesheet($path)
{
- if (mb_strpos($path, $this->getBasePath() . DIRECTORY_SEPARATOR) == 0) {
- $path = mb_substr($path, mb_strlen($this->getBasePath() . DIRECTORY_SEPARATOR));
+ if (mb_strpos($path, $this->getBasePath() . DIRECTORY_SEPARATOR) === 0) {
+ $path = mb_substr($path, mb_strlen($this->getBasePath() . DIRECTORY_SEPARATOR));
}
$this->stylesheets[] = trim($path, '/');