checkWikiPageTemplatePerms($name, $source); if ($info) { $source = TikiLib::lib('parser')->parse_data($info['data'], ['is_html' => $info['is_html'], 'print' => 'y', 'inside_pretty' => true]); } } protected function fetchTimestamp($name) { global $tikilib; $info = $tikilib->get_page_info($name); if (empty($info)) { return false; } if ( preg_match('/\{([A-z-Z0-9_]+) */', $info['data']) || preg_match('/\{\{.+\}\}/', $info['data']) ) { // there are some plugins - so it can be risky to cache the page return $tikilib->now + 100; // future needed in case consecutive run of template; } return $info['lastModif']; } }