Skip to content
Snippets Groups Projects
Commit b011ee3b authored by megachriz's avatar megachriz Committed by Megachriz
Browse files

Issue #2911711 by MegaChriz: Inform the user Feeds must be enabled in order to...

Issue #2911711 by MegaChriz: Inform the user Feeds must be enabled in order to run database update 7213.
parent 4cb5ca6e
No related branches found
No related tags found
No related merge requests found
......@@ -769,9 +769,14 @@ function feeds_update_7212() {
* Set cache class for Feeds HTTP cache.
*/
function feeds_update_7213() {
// Check if Feeds is enabled first.
if (!class_exists('FeedsHTTPCache') && !module_exists('feeds')) {
throw new DrupalUpdateException('Please enable the Feeds module to perform this update.');
}
// Perform a registry rebuild so the system hopefully discovers the
// FeedsHTTPCache class.
if (function_exists('registry_rebuild')) {
if (!class_exists('FeedsHTTPCache') && function_exists('registry_rebuild')) {
registry_rebuild();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment