* code for task #80457.

This commit is contained in:
wangyidong
2022-12-21 15:15:28 +08:00
parent 164cca5ffe
commit 034c750da5
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -3302,7 +3302,7 @@ class bugModel extends model
foreach($browserList as $value)
{
if(empty($value)) continue;
$browser .= $this->lang->bug->browserList[$value] . ',';
$browser .= zget($this->lang->bug->browserList, $value) . ',';
}
$os = trim($os, ',');
$browser = trim($browser, ',');
+9 -1
View File
@@ -630,9 +630,17 @@ class extensionModel extends model
public function cleanModelCache()
{
$modelCacheFiles = glob($this->app->getTmpRoot() . 'model/*');
$zfile = $this->app->loadClass('zfile');
foreach($modelCacheFiles as $cacheFile)
{
if(is_writable($cacheFile) and !is_dir($cacheFile)) @unlink($cacheFile);
if(is_dir($cacheFile))
{
$zfile->removeDir($cacheFile);
}
elseif(is_writable($cacheFile) and !is_dir($cacheFile))
{
@unlink($cacheFile);
}
}
}