// 2) Try to build it
$languageBasePath = sprintf('%sapplication/%s/language/',
$langInstance->getConfigInstance()->getConfigEntry('base_path'),
- $applicationInstance->getAppShortName()
+ // Don't allow any underscores/dashes in application names
+ str_replace(array('_', '-'), array('', ''), $applicationInstance->getAppShortName())
);
} // END - if