Bläddra i källkod

Fix fatal error when Feature checks the status of the feature

Yves Chedemois 15 år sedan
förälder
incheckning
3cee423193
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      views/fgcf.views_default.inc

+ 4 - 0
views/fgcf.views_default.inc

@@ -12,6 +12,10 @@
  * @return array
  */
 function fgcf_views_default_views() {
+  // Needed to avoid fatal 'class view not found' error when Features
+  // checks the status of the feature.
+  views_include('view');
+
   $info = fgcf_views_api();
   $path = $info['path'];
   $defaults = basename(__FILE__);