[php] Fixing of functions.php loading incorrectly