debug panel : changed .json to .php

This commit is contained in:
Eugene Kuzminov
2013-10-17 16:37:31 +03:00
parent b9de474cce
commit 5b86ec973e
2 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ class DefaultController extends Controller
protected function getManifest()
{
if ($this->_manifest === null) {
$indexFile = $this->module->dataPath . '/index.json';
$indexFile = $this->module->dataPath . '/index.php';
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.json";
$dataFile = $this->module->dataPath . "/$tag.php";
$data = unserialize(file_get_contents($dataFile));
foreach ($this->module->panels as $id => $panel) {
if (isset($data[$id])) {