[ticket/13389] Replace pattern with path

https://tracker.phpbb.com/browse/PHPBB3-13389