Skip to content

Commit

Permalink
Implemented: EZP-23260 eZ Find update index script shouldn't run if e…
Browse files Browse the repository at this point in the history
…Z Find is not enabled
  • Loading branch information
crevillo committed Aug 13, 2014
1 parent 4e0f8c9 commit d90d7c5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/php/updatesearchindexsolr.php
Expand Up @@ -97,6 +97,13 @@ public function run()
);
$this->Script->initialize();

// check if ezfind is enabled and exit if not
if ( ! in_array( 'ezfind', eZExtension::activeExtensions() ) )
{
$this->CLI->error( 'eZ Find extension is not enabled and because of that index process will fail. Please enable it and run this script again.' );
$this->Script->shutdown( 0 );
}

// Fix siteaccess
$siteAccess = $this->Options['siteaccess'] ? $this->Options['siteaccess'] : false;
if ( $siteAccess )
Expand Down

0 comments on commit d90d7c5

Please sign in to comment.