From: Pete J. <pj...@gi...> - 2012-05-16 21:03:29
|
In lib/smarty_tiki/resource.wiki.php 13 * \brief Smarty plugin to use wiki page as a template resource 14 * ------------------------------------------------------------- 15 * File: resource.wiki.php 16 * Type: resource 17 * Name: wiki 18 * Purpose: Fetches a template from a wiki page 19 * ------------------------------------------------------------- 20 */ 21 function smarty_resource_wiki_source($page, &$tpl_source, $smarty) 22 { 23 global $tikilib, $user; 27 $tpl_source= tra('Permission denied: the specified wiki page cannot be used as Smarty template resource').'<br />'; 28 // TODO: do not cache ! and return the message only once should be enough... 29 return true; 30 } 31 32 $info = $tikilib->get_page_info($page); 33 if (empty($info)) { 34 return false; 35 } In line 27 above, it would be great to have the "specified wiki page", well, specified. Could someone add that without too much effort? Is it as simple as adding $page to line 27, something like so: 27 $tpl_source= tra('Permission denied: the specified wiki page cannot be used as Smarty template resource').": $page ".'<br />'; I'm gonna guess that that could be added in several places in the code tree, but this is where I could have used it today. Thanks! Pete |