Refactor #9884 MODX_MANAGER_PATH step6

thanks