mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15540] More fixes
PHPBB3-15540
This commit is contained in:
parent
9b8ddc2698
commit
53dce77b49
1 changed files with 6 additions and 7 deletions
|
@ -23,7 +23,7 @@ use phpbb\install\helper\container_factory;
|
||||||
use phpbb\install\helper\database;
|
use phpbb\install\helper\database;
|
||||||
use phpbb\install\helper\iohandler\iohandler_interface;
|
use phpbb\install\helper\iohandler\iohandler_interface;
|
||||||
use phpbb\install\sequential_task;
|
use phpbb\install\sequential_task;
|
||||||
use phpbb\search\fulltext_native;
|
use phpbb\search\backend\fulltext_native;
|
||||||
use phpbb\user;
|
use phpbb\user;
|
||||||
|
|
||||||
class create_search_index extends database_task
|
class create_search_index extends database_task
|
||||||
|
@ -127,16 +127,14 @@ class create_search_index extends database_task
|
||||||
|
|
||||||
$this->posts_table = $container->get_parameter('tables.posts');
|
$this->posts_table = $container->get_parameter('tables.posts');
|
||||||
|
|
||||||
$this->error = false;
|
// Esto se cargara por servicio abajo
|
||||||
$this->search_indexer = new fulltext_native(
|
$this->search_indexer = new fulltext_native(
|
||||||
$this->error,
|
|
||||||
$this->phpbb_root_path,
|
|
||||||
$this->php_ext,
|
|
||||||
$this->auth,
|
|
||||||
$this->config,
|
$this->config,
|
||||||
$this->db,
|
$this->db,
|
||||||
|
$this->phpbb_dispatcher,
|
||||||
$this->user,
|
$this->user,
|
||||||
$this->phpbb_dispatcher
|
$this->phpbb_root_path,
|
||||||
|
$this->php_ext
|
||||||
);
|
);
|
||||||
|
|
||||||
parent::__construct($this->conn, $iohandler, true);
|
parent::__construct($this->conn, $iohandler, true);
|
||||||
|
@ -150,6 +148,7 @@ class create_search_index extends database_task
|
||||||
// Make sure fulltext native load update is set
|
// Make sure fulltext native load update is set
|
||||||
$this->config->set('fulltext_native_load_upd', 1);
|
$this->config->set('fulltext_native_load_upd', 1);
|
||||||
|
|
||||||
|
// TODO: Replace this with create_index() when it don't depend on acp
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$sql = 'SELECT post_id, post_subject, post_text, poster_id, forum_id FROM ' . $this->posts_table;
|
$sql = 'SELECT post_id, post_subject, post_text, poster_id, forum_id FROM ' . $this->posts_table;
|
||||||
|
|
Loading…
Add table
Reference in a new issue