PrestaShop/PrestaShop — pull request #2048 by Chontrad (2014-08-13 18:31:19+00:00)
Title: Path efficiency improvement

Prevent excessive reuse of $this->root_dir, pass full path to getClassesFromDir().
Use user customable _PS_CACHE_DIR_ and _PS_OVERRIDE_DIR_ as path base.

_PS_HOST_MODE_ is not needed to determine override folder, because the user can directly customize _PS_OVERRIDE_DIR_ from config/defines.inc.php