2011-06-17 102 views
0

我需要關於dokuwiki的幫助 我想從wiki中刪除版本控制。任何提示我們的幫助將不勝感激。 預先感謝 我已經看過這個代碼,但至今沒得到任何想法dokuwiki:在dokuwiki中禁用版本控制

`類cache_renderer擴展cache_parser { 功能_useCache(){ 全球$ CONF;

if (!parent::_useCache()) return false; 

    if (!isset($this->page)) { 
     return true; 
    } 

    // check current link existence is consistent with cache version 
    // first check the purgefile 
    // - if the cache is more recent than the purgefile we know no links can have been updated 
    if ($this->_time >= @filemtime($conf['cachedir'].'/purgefile')) { 
     return true; 
    } 

    // for wiki pages, check metadata dependencies 
    $metadata = p_get_metadata($this->page); 

    if (!isset($metadata['relation']['references']) || 
      empty($metadata['relation']['references'])) { 
     return true; 
    } 

    foreach ($metadata['relation']['references'] as $id => $exists) { 
     if ($exists != page_exists($id,'',false)) return false; 
    } 

    return true; 
}` 
+1

您是否需要刪除版本控制(這將需要對核心系統進行更改),還是您不希望用戶有權訪問它? (可以在模板中完成) – symcbean 2011-06-17 07:29:31

+0

我需要將它從系統中刪除@symcbean – 2011-06-17 07:36:59

回答

1

在inc/common.php中搜索函數saveOldRevision()。

Btw。我會建議在官方論壇/郵件列表中提出這些問題。你會發現知道源代碼的人。