function _addDependencies() { global $conf, $config_cascade; $this->depends['age'] = isset($this->depends['age']) ? min($this->depends['age'], $conf['cachetime']) : $conf['cachetime']; // parser cache file dependencies ... $files = array($this->file, DOKU_INC . 'inc/parser/parser.php', DOKU_INC . 'inc/parser/handler.php'); $files = array_merge($files, getConfigFiles('main')); // ... wiki settings $this->depends['files'] = !empty($this->depends['files']) ? array_merge($files, $this->depends['files']) : $files; parent::_addDependencies(); }
protected function _addDependencies() { // parser cache file dependencies ... $files = array($this->file, DOKU_INC . 'inc/parser/parser.php', DOKU_INC . 'inc/parser/handler.php'); $files = array_merge($files, getConfigFiles('main')); // ... wiki settings $this->depends['files'] = !empty($this->depends['files']) ? array_merge($files, $this->depends['files']) : $files; parent::_addDependencies(); }
function _addDependencies() { global $conf; $this->depends['age'] = isset($this->depends['age']) ? min($this->depends['age'], $conf['cachetime']) : $conf['cachetime']; // parser cache file dependencies ... $files = array($this->file, DOKU_CONF . 'dokuwiki.php', DOKU_CONF . 'local.php', DOKU_INC . 'inc/parser/parser.php', DOKU_INC . 'inc/parser/handler.php'); $this->depends['files'] = !empty($this->depends['files']) ? array_merge($files, $this->depends['files']) : $files; parent::_addDependencies(); }