Bladeren bron

Fix fatal error when Feature checks the status of the feature

Yves Chedemois 15 jaren geleden
bovenliggende
commit
3cee423193
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  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__);