1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 23:56:58 +02:00

Fixed error in {XURL_ICONS} shortcode. Added a test. Fixed some warnings in the admin/language page.

This commit is contained in:
Cameron
2021-01-25 17:57:34 -08:00
parent ef8844b019
commit 76dbd4469e
5 changed files with 41 additions and 12 deletions

View File

@@ -321,16 +321,16 @@ class lancheck
public function errorsOnly($val)
{
$this->errorsOnly = $val;
$this->errorsOnly = (bool) $val;
}
public function init()
{
$mode = $_GET['sub'];
$lan = $_GET['lan'];
$file = $_GET['file'];
$mode = varset($_GET['sub']);
$lan = varset($_GET['lan']);
$file = varset($_GET['file']);
$this->transLanguage = $lan;
@@ -865,12 +865,13 @@ class lancheck
$xml = e107::getXml();
$feed = 'https://e107.org/languagepacks.xml';
$version = e_VERSION;
if(!empty($version))
{
list($ver,$tmp) = explode("-", $version);
$tmp = explode("-", $version);
$ver = varset($tmp[0]);
$feed .= "?ver=". preg_replace('/[^\d\.]/','', $ver);
}
@@ -913,7 +914,7 @@ class lancheck
$languages[$id] = array(
'name' => $att['name'],
'author' => $att['author'],
'author' => varset($att['author']),
'infoURL' => $att['infourl'],
'tag' => $att['tag'],
// 'folder' => $att['folder'],

View File

@@ -179,11 +179,11 @@ if(!empty($_GET['iframe']))
function ToolsPage()
{
$this->loadPackInfo();
$pref = e107::getPref();
$pref = e107::getPref('multilanguage_verify_errorsonly', false);
/** @var lancheck $lck */
$lck = e107::getSingleton('lancheck', e_ADMIN."lancheck.php");
$lck->errorsOnly($pref['multilanguage_verify_errorsonly']);
$lck->errorsOnly($pref);
// show_packs();
if($return = $lck->init())