mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-03 14:17:56 +02:00
[ticket/17108] Stop using backslashes for css selectors
PHPBB3-17108
This commit is contained in:
parent
0fad1dc1da
commit
21222adc99
@ -10,7 +10,7 @@
|
||||
|
||||
{% if backend.S_STATS is not empty %}
|
||||
|
||||
<form id="acp_search_index_{{ backend.TYPE }}" method="post" action="{{ U_ACTION }}">
|
||||
<form id="acp_search_index_{{ backend.TYPE|replace({'\\': '-'}) }}" method="post" action="{{ U_ACTION }}">
|
||||
|
||||
<fieldset class="tabulated">
|
||||
|
||||
|
@ -21,6 +21,7 @@ use phpbb\di\service_collection;
|
||||
use phpbb\language\language;
|
||||
use phpbb\log\log;
|
||||
use phpbb\request\request;
|
||||
use phpbb\search\backend\search_backend_interface;
|
||||
use phpbb\search\search_backend_factory;
|
||||
use phpbb\search\state_helper;
|
||||
use phpbb\template\template;
|
||||
@ -322,6 +323,7 @@ class acp_search
|
||||
$this->tpl_name = 'acp_search_index';
|
||||
$this->page_title = 'ACP_SEARCH_INDEX';
|
||||
|
||||
/** @var search_backend_interface $search */
|
||||
foreach ($this->search_backend_collection as $search)
|
||||
{
|
||||
$this->template->assign_block_vars('backends', [
|
||||
|
@ -230,7 +230,7 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case
|
||||
|
||||
// Ensure search index has been actually created
|
||||
$crawler = self::request('GET', 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid);
|
||||
$posts_indexed = (int) $crawler->filter('#acp_search_index_' . $search_type . ' td')->eq(1)->text();
|
||||
$posts_indexed = (int) $crawler->filter('#acp_search_index_' . str_replace('\\', '-', $search_type) . ' td')->eq(1)->text();
|
||||
$this->assertTrue($posts_indexed > 0);
|
||||
}
|
||||
|
||||
@ -267,7 +267,7 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case
|
||||
|
||||
// Ensure search index has been actually removed
|
||||
$crawler = self::request('GET', 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid);
|
||||
$posts_indexed = (int) $crawler->filter('#acp_search_index_' . $this->search_backend . ' td')->eq(1)->text();
|
||||
$posts_indexed = (int) $crawler->filter('#acp_search_index_' . str_replace('\\', '-', $this->search_backend) . ' td')->eq(1)->text();
|
||||
$this->assertEquals(0, $posts_indexed);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user