Explorar el Código

Fix fatal error when Feature checks the status of the feature

Yves Chedemois hace 15 años
padre
commit
3cee423193
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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__);