From 89394db017216dc5afab53a00820defb3506aea5 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 17 Oct 2013 17:12:29 -0400 Subject: [PATCH] Fixes #999. --- framework/yii/debug/LogTarget.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/yii/debug/LogTarget.php b/framework/yii/debug/LogTarget.php index 31bca6e..30392f0 100644 --- a/framework/yii/debug/LogTarget.php +++ b/framework/yii/debug/LogTarget.php @@ -45,7 +45,7 @@ class LogTarget extends Target if (!is_dir($path)) { mkdir($path); } - $indexFile = "$path/index.php"; + $indexFile = "$path/index.data"; if (!is_file($indexFile)) { $manifest = array(); } else { @@ -62,7 +62,7 @@ class LogTarget extends Target ); $this->gc($manifest); - $dataFile = "$path/{$this->tag}.php"; + $dataFile = "$path/{$this->tag}.data"; $data = array(); foreach ($this->module->panels as $id => $panel) { $data[$id] = $panel->save(); @@ -93,7 +93,7 @@ class LogTarget extends Target if (count($manifest) > $this->module->historySize + 10) { $n = count($manifest) - $this->module->historySize; foreach (array_keys($manifest) as $tag) { - $file = $this->module->dataPath . "/$tag.php"; + $file = $this->module->dataPath . "/$tag.data"; @unlink($file); unset($manifest[$tag]); if (--$n <= 0) {