【问题标题】:dokuwiki: disabling versioning in dokuwikidokuwiki:在 dokuwiki 中禁用版本控制
【发布时间】:2011-06-17 07:26:54
【问题描述】:

我需要有关 dokuwiki 的帮助 我想从 wiki 中删除版本控制。任何提示我们的帮助将不胜感激。 提前致谢 我已经查看了这段代码,但到目前为止没有任何想法

`class 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;
}`

【问题讨论】:

  • 您是否需要删除版本控制(这将需要更改核心系统)或者您只是不想让您的用户访问它? (可以在模板中完成)
  • 我需要从系统中删除它@symcbean

标签: php dokuwiki


【解决方案1】:

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

顺便说一句。我建议在官方论坛/邮件列表中提出此类问题。在那里你会找到知道源代码的人。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多