defined('JPATH_BASE') --> defined('JPATH_PLATFORM')