silverstripe-fulltextsearch/_config.php
Hamish Friedlander 1ee50dd9ab BUG make bind_manipulation_capture call correctly
When the module was called solr we could call SearchUpdater::bind_manipulation_capture in _config.php, because
solr/_config.php was included after mysite/_config.php. This isnt true when the module is called fulltextsearch

Instead we hook into the new RequestProcessor in 3.0 to make the manipulation capture. We also make
bind_manipulation_capture re-callable, so you can call it any time you need to make sure.
2012-07-19 12:09:44 +12:00

5 lines
111 B
PHP

<?php
global $databaseConfig;
if (isset($databaseConfig['type'])) SearchUpdater::bind_manipulation_capture();