From 86ceee5293db160417968bda6e380c2507c058d0 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 18 Oct 2013 10:19:37 -0400 Subject: [PATCH] Fixes #1017. --- framework/yii/debug/controllers/DefaultController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/debug/controllers/DefaultController.php b/framework/yii/debug/controllers/DefaultController.php index 2026dc7..62fe61a 100644 --- a/framework/yii/debug/controllers/DefaultController.php +++ b/framework/yii/debug/controllers/DefaultController.php @@ -74,7 +74,7 @@ class DefaultController extends Controller protected function getManifest() { if ($this->_manifest === null) { - $indexFile = $this->module->dataPath . '/index.php'; + $indexFile = $this->module->dataPath . '/index.data'; if (is_file($indexFile)) { $this->_manifest = array_reverse(unserialize(file_get_contents($indexFile)), true); } else { @@ -88,7 +88,7 @@ class DefaultController extends Controller { $manifest = $this->getManifest(); if (isset($manifest[$tag])) { - $dataFile = $this->module->dataPath . "/$tag.php"; + $dataFile = $this->module->dataPath . "/$tag.data"; $data = unserialize(file_get_contents($dataFile)); foreach ($this->module->panels as $id => $panel) { if (isset($data[$id])) {