From 8c3651b755cbd08b6c504dc326a1f73c9f814ce6 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Mon, 15 Jul 2013 02:08:21 +0000 Subject: [PATCH] * change 'view' to 'debug' of api. --- module/api/control.php | 2 +- module/api/css/{view.css => debug.css} | 0 module/api/js/{view.js => debug.js} | 0 module/api/view/{view.html.php => debug.html.php} | 0 module/editor/model.php | 2 +- module/group/lang/resource.php | 1 + 6 files changed, 3 insertions(+), 2 deletions(-) rename module/api/css/{view.css => debug.css} (100%) rename module/api/js/{view.js => debug.js} (100%) rename module/api/view/{view.html.php => debug.html.php} (100%) diff --git a/module/api/control.php b/module/api/control.php index 7077325619..02e0b88719 100644 --- a/module/api/control.php +++ b/module/api/control.php @@ -56,7 +56,7 @@ class api extends control * @access public * @return void */ - public function view($filePath, $action) + public function debug($filePath, $action) { if($filePath) { diff --git a/module/api/css/view.css b/module/api/css/debug.css similarity index 100% rename from module/api/css/view.css rename to module/api/css/debug.css diff --git a/module/api/js/view.js b/module/api/js/debug.js similarity index 100% rename from module/api/js/view.js rename to module/api/js/debug.js diff --git a/module/api/view/view.html.php b/module/api/view/debug.html.php similarity index 100% rename from module/api/view/view.html.php rename to module/api/view/debug.html.php diff --git a/module/editor/model.php b/module/editor/model.php index 783ffbb508..7ffba458df 100644 --- a/module/editor/model.php +++ b/module/editor/model.php @@ -369,7 +369,7 @@ class editorModel extends model */ public function getAPILink($filePath, $action) { - return helper::createLink('api', 'view', "filePath=" . helper::safe64Encode($filePath) . "&action=$action"); + return helper::createLink('api', 'debug', "filePath=" . helper::safe64Encode($filePath) . "&action=$action"); } /** diff --git a/module/group/lang/resource.php b/module/group/lang/resource.php index 52b1962ab3..c262757048 100644 --- a/module/group/lang/resource.php +++ b/module/group/lang/resource.php @@ -703,6 +703,7 @@ $lang->webapp->methodOrder[35] = 'uninstall'; /* Others. */ $lang->resource->api = new stdclass(); $lang->resource->api->getModel = 'getModel'; +$lang->resource->api->debug = 'debug'; $lang->api->methodOrder[5] = 'getModel';