diff --git a/e107_admin/lancheck.php b/e107_admin/lancheck.php
index 22b04c458..d32d77944 100644
--- a/e107_admin/lancheck.php
+++ b/e107_admin/lancheck.php
@@ -405,7 +405,7 @@ class lancheck
// return true;
}
- return FALSE;
+ return false;
}
@@ -1202,7 +1202,7 @@ class lancheck
else
{
// $caption = LAN_SAVED." ".$lan."/".$writeit."";
- $caption = LAN_SAVED." ".$writeit."";
+ $caption = LAN_SAVED." ".str_replace('..','',$writeit)."";
$status = e107::getMessage()->addSuccess($caption)->render();
}
fclose($fp);
@@ -1272,7 +1272,7 @@ class lancheck
if(!empty($check['bom'][$bomkey]))
{
$bom_error = "".$tp->lanVars(LAN_CHECK_15,array("'<?php'","'?>'"))."
"; // illegal chars
- $this->checkLog('bom',1);;
+ $this->checkLog('bom',1);
}
else
{
@@ -1325,7 +1325,7 @@ class lancheck
$editUrl = e_REQUEST_SELF."?".http_build_query($parms,'&');
$text .="
- ".LAN_EDIT."";
+ ".LAN_EDIT."";
$text .=" | ";
}
@@ -1527,7 +1527,7 @@ class lancheck
list($pluginDirectory, $other) = explode("/",$tmpDir, 2);
- if($mode == 'plugins' && ($this->thirdPartyPlugins !== true) && !in_array($pluginDirectory, $this->core_plugins))
+ if(($this->thirdPartyPlugins !== true) && !in_array($pluginDirectory, $this->core_plugins))
{
continue;
}
@@ -1540,7 +1540,7 @@ class lancheck
list($themeDirectory, $other) = explode("/",$tmpDir, 2);
- if($mode == 'themes' && ($this->thirdPartyPlugins !== true) && !in_array($themeDirectory, $this->core_themes))
+ if(($this->thirdPartyPlugins !== true) && !in_array($themeDirectory, $this->core_themes))
{
continue;
}
@@ -1827,7 +1827,8 @@ class lancheck
{
$rowamount = round(strlen($trans['orig'][$sk])/34)+1;
$hglt1=""; $hglt2="";
- if ($trans['tran'][$sk] == "" && $trans['orig'][$sk]!="") {
+ if(empty($trans['tran'][$sk]) && !empty($trans['orig'][$sk]))
+ {
$hglt1="";//Missing
$hglt2="";
}
@@ -1841,10 +1842,10 @@ class lancheck
".htmlentities(str_replace("ndef++","",$trans['orig'][$sk])) ." | ";
$text .= "