* code for task #80457.
This commit is contained in:
@@ -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, ',');
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user