1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

Closes #3617 - LAN pack export message updated

Emails are no longer (unneccesarily) sent
This commit is contained in:
Tijn Kuyper
2019-01-27 14:57:10 +01:00
parent 600ebad5a4
commit 6f18c238bc
2 changed files with 24 additions and 27 deletions

View File

@@ -458,6 +458,8 @@ class lancheck
{
$mes = e107::getMessage();
/* NO LONGER USED
$certVal = isset($_POST['contribute_pack']) ? 1 : 0;
if(!varset($_COOKIE['e107_certified']))
@@ -467,39 +469,44 @@ class lancheck
else
{
$_COOKIE['e107_certified'] = $certVal;
}
}*/
// $_POST['language'] = key($_POST['ziplang']);
// If no session data, scan before zipping.
// If no session data, scan before zipping.
if(!isset($_SESSION['lancheck'][$language]['total']) || $_SESSION['lancheck'][$language]['total']!='0')
{
$this->check_all('norender', $language);
}
$status = $this->makeLanguagePack($language);
//print_a($status);
if($status['error']==FALSE)
if($status['error'] == FALSE)
{
$text = $status['message']."<br />";
$text .= $this->share($status['file']);
$mes->addSuccess($text);
//$ns->tablerender(LAN_CREATED, $text );
$srch = array('[', ']');
$rpl = array("<a href='https://github.com/e107translations/Translator-Information' target='_blank'>", "</a>");
$text = str_replace($srch, $rpl, LANG_LAN_154);
$text .= "<br />";
$text .= $status['message'];
//$text .= $this->share($status['file']); // no longer notify by email, but only offer to download
$mes->addSuccess($text);
}
else
{
$mes->addError($status['message']);
//$ns->tablerender(LAN_CREATED_FAILED, $status['message']);
$mes->addError($status['error']);
}
return array('text'=>$mes->render(), 'caption'=>'');
return array('text'=> $mes->render(), 'caption'=>'');
}
/**
* Share Language File
*
* DEPRECATED - NO LONGER USED AS TRANSLATIONS ARE NOW MANAGED THROUGH GITHUB REPOSITORIES (https://github.com/e107translations)
*
* @param object $newfile
* Usage of e107 is granted to you provided that this function is not modified or removed in any way.
* @return
@@ -2038,15 +2045,4 @@ class lancheck
}
}
}