1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-19 12:11:55 +02:00

Fixes #2003 LAN_PLUGIN_PAGE_NAME and LAN_PLUGIN_DOWNLOAD_NAME were displayed on admin search page after clean install.

This commit is contained in:
Cameron 2020-11-28 12:44:00 -08:00
parent faed5e5d46
commit 5f43f5159c
3 changed files with 17 additions and 1 deletions

View File

@ -493,7 +493,7 @@ else
{
$path = ($value['dir'] == 'core') ? e_HANDLER.'search/comments_'.$key.'.php' : e_PLUGIN.$value['dir'].'/search/search_comments.php';
if($value['dir'] == 'download' && !e107::isInstalled($value['dir']))
if(($value['dir'] == 'download' || $key == 'download') && !e107::isInstalled('download'))
{
continue;
}

View File

@ -165,6 +165,12 @@
<core name="inputdate">%A, %d %b, %Y</core>
<core name="inputtime">%I:%M %p</core>
<core name="install_date">1251664949</core>
<core name="lan_global_list"><![CDATA[array (
'page' => 'page',
'social' => 'social',
'rss_menu' => 'rss_menu',
'user' => 'user',
)]]></core>
<core name="link_replace">0</core>
<core name="link_text"></core>
<core name="linkpage_screentip">0</core>

View File

@ -47,6 +47,16 @@ class AdminLoginCest
}
public function testAdminSearchPage(AcceptanceTester $I)
{
$this->e107Login($I);
$I->amOnPage('/e107_admin/search.php');
$I->dontSee("LAN_PLUGIN_");
$I->see("Pages");
}
public function testAdminURLS(AcceptanceTester $I)
{