Author: mj
Date: Wed Nov 2 10:52:52 2011
New Revision: 10244
Log:
Closes #2064.
Modified:
trunk/apps/qubit/modules/menu/actions/editAction.class.php
Modified: trunk/apps/qubit/modules/menu/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/menu/actions/editAction.class.php Wed Nov 2
10:07:00 2011 (r10243)
+++ trunk/apps/qubit/modules/menu/actions/editAction.class.php Wed Nov 2
10:52:52 2011 (r10244)
@@ -150,8 +150,11 @@
$this->menu->save();
// Remove cache
-
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_browseMenu&sf_cache_key=settings');
-
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_mainMenu&sf_cache_key=settings');
+ if ($this->context->getViewCacheManager() !== null)
+ {
+
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_browseMenu&sf_cache_key=settings');
+
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_mainMenu&sf_cache_key=settings');
+ }
$this->redirect(array('module' => 'menu', 'action' => 'list'));
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.