Replace pattern with path (PHPBB3-13389)