mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/15540] Fix tests and small fixes
PHPBB3-15540
This commit is contained in:
@@ -1735,7 +1735,7 @@ class fulltext_native extends base implements search_backend_interface
|
||||
$totaltime = microtime(true) - $starttime;
|
||||
$rows_per_second = $row_count / $totaltime;
|
||||
meta_refresh(1, $u_action);
|
||||
trigger_error($user->lang('SEARCH_INDEX_CREATE_REDIRECT', (int) $row_count, $post_counter) . $user->lang('SEARCH_INDEX_CREATE_REDIRECT_RATE', $rows_per_second));
|
||||
trigger_error($this->user->lang('SEARCH_INDEX_CREATE_REDIRECT', (int) $row_count, $post_counter) . $this->user->lang('SEARCH_INDEX_CREATE_REDIRECT_RATE', $rows_per_second));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -15,24 +15,25 @@ namespace phpbb\search;
|
||||
|
||||
use phpbb\config\config;
|
||||
use phpbb\di\service_collection;
|
||||
use phpbb\search\backend\search_backend_interface;
|
||||
|
||||
class search_backend_factory
|
||||
{
|
||||
/**
|
||||
* @var \phpbb\config\config
|
||||
* @var config
|
||||
*/
|
||||
protected $config;
|
||||
|
||||
/**
|
||||
* @var \phpbb\di\service_collection
|
||||
* @var service_collection
|
||||
*/
|
||||
protected $search_backends;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param \phpbb\config\config $config
|
||||
* @param \phpbb\di\service_collection $search_backends
|
||||
* @param config $config
|
||||
* @param service_collection $search_backends
|
||||
*/
|
||||
public function __construct(config $config, service_collection $search_backends)
|
||||
{
|
||||
@@ -45,7 +46,7 @@ class search_backend_factory
|
||||
*
|
||||
* @param string $class
|
||||
*
|
||||
* @return \phpbb\search\backend\search_backend_interface
|
||||
* @return search_backend_interface
|
||||
*/
|
||||
public function get($class)
|
||||
{
|
||||
@@ -55,7 +56,7 @@ class search_backend_factory
|
||||
/**
|
||||
* Obtains active search backend
|
||||
*
|
||||
* @return \phpbb\search\backend\search_backend_interface
|
||||
* @return search_backend_interface
|
||||
*/
|
||||
public function get_active()
|
||||
{
|
||||
|
Reference in New Issue
Block a user