security updates
have to check views and entityreference for custom patches
This commit is contained in:
@@ -165,9 +165,15 @@ function context_context_registry() {
|
||||
* Implementation of hook_init().
|
||||
*/
|
||||
function context_init() {
|
||||
if ($plugin = context_get_plugin('condition', 'sitewide')) {
|
||||
$plugin->execute(1);
|
||||
}
|
||||
if ($plugin = context_get_plugin('condition', 'path')) {
|
||||
$plugin->execute();
|
||||
}
|
||||
if ($plugin = context_get_plugin('condition', 'query_string')) {
|
||||
$plugin->execute();
|
||||
}
|
||||
if ($plugin = context_get_plugin('condition', 'language')) {
|
||||
global $language;
|
||||
$plugin->execute($language->language);
|
||||
@@ -458,7 +464,7 @@ function context_empty($element) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
$empty = $empty && empty($element);
|
||||
$empty = $empty && !isset($element);
|
||||
}
|
||||
return $empty;
|
||||
}
|
||||
|
Reference in New Issue
Block a user