mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
가상사이트에서 위키의 계층 구조 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6641 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ae75b2e353
commit
67f939b035
2 changed files with 5 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ function viewHistory(history_srl) {
|
||||||
var simpleTreeCollection;
|
var simpleTreeCollection;
|
||||||
function Tree(){
|
function Tree(){
|
||||||
var url = request_uri.setQuery('mid',current_mid).setQuery('act','getWikiTreeList');
|
var url = request_uri.setQuery('mid',current_mid).setQuery('act','getWikiTreeList');
|
||||||
if(typeof(xeVid)!='undefined') url.setQuery('vid',xeVid);
|
if(typeof(xeVid)!='undefined') url = url.setQuery('vid',xeVid);
|
||||||
|
|
||||||
// clear tree;
|
// clear tree;
|
||||||
jQuery('#tree > ul > li > ul').remove();
|
jQuery('#tree > ul > li > ul').remove();
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@
|
||||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||||
header("Pragma: no-cache");
|
header("Pragma: no-cache");
|
||||||
|
|
||||||
|
$oModuleModel = &getModel('module');
|
||||||
|
|
||||||
|
$mid = Context::get('mid');
|
||||||
|
|
||||||
$cache_file = sprintf('%sfiles/cache/wiki/%d.xml', _XE_PATH_,$this->module_srl);
|
$cache_file = sprintf('%sfiles/cache/wiki/%d.xml', _XE_PATH_,$this->module_srl);
|
||||||
if(!file_exists($cache_file)) FileHandler::writeFile($cache_file, $this->loadWikiTreeList($this->module_srl));
|
if(!file_exists($cache_file)) FileHandler::writeFile($cache_file, $this->loadWikiTreeList($this->module_srl));
|
||||||
|
|
||||||
|
|
@ -45,7 +49,6 @@
|
||||||
if($output->data) {
|
if($output->data) {
|
||||||
// 데이트를 이용하여 XML 문서로 생성
|
// 데이트를 이용하여 XML 문서로 생성
|
||||||
foreach($output->data as $node) {
|
foreach($output->data as $node) {
|
||||||
if(!trim($node->title)) $node->title = 'Front Page';
|
|
||||||
$tree[(int)$node->parent_srl][$node->document_srl] = $node;
|
$tree[(int)$node->parent_srl][$node->document_srl] = $node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue