Commit 5a3e3b17 authored by xjm's avatar xjm

Issue #2501639 by crowdcg, Cottser, cwells, YesCT, Gábor Hojtsy: Remove...

Issue #2501639 by crowdcg, Cottser, cwells, YesCT, Gábor Hojtsy: Remove SafeMarkup::set in drupal_check_module()
parent 83c3d9ea
......@@ -9,7 +9,6 @@
use Symfony\Component\HttpFoundation\RedirectResponse;
use Drupal\Component\Utility\Crypt;
use Drupal\Component\Utility\OpCodeCache;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Extension\ExtensionDiscovery;
use Drupal\Core\Site\Settings;
......@@ -980,14 +979,11 @@ function drupal_check_module($module) {
// Print any error messages
foreach ($requirements as $requirement) {
if (isset($requirement['severity']) && $requirement['severity'] == REQUIREMENT_ERROR) {
$message = SafeMarkup::escape($requirement['description']);
$message = $requirement['description'];
if (isset($requirement['value']) && $requirement['value']) {
$message .= ' (' . t('Currently using !item !version', array('!item' => $requirement['title'], '!version' => $requirement['value'])) . ')';
$message = t('@requirements_message (Currently using @item version @version)', array('@requirements_message' => $requirement['description'], '@item' => $requirement['title'], '@version' => $requirement['value']));
}
// The string was previously checked as safe or escaped properly with
// SafeMarkup::escape() method and the concatinated message string is
// designated safe by running through the t() function.
drupal_set_message(SafeMarkup::set($message), 'error');
drupal_set_message($message, 'error');
}
}
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment