Confirm M2.6 compatibilty, remove deprecated ereg_replace calls