Skip to content
Browse files

add <?page?> tag to all views, which resolves pages

  • Loading branch information...
1 parent 9758efb commit 5d918a7e7d20ca1ffa3dd15e9067a0c1309feca2 @romaninsh romaninsh committed Mar 25, 2011
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/ApiWeb.php
View
10 lib/ApiWeb.php
@@ -199,13 +199,15 @@ function setTags($t){
$t->trySet('base_path',$q=$this->api->pm->base_path);
// We are using new capability of SMlite to process tags individually
- $t->eachTag('template',array($this,'locateTemplate'));
-
+ $t->eachTag('template',array($this,'_locateTemplate'));
+ $t->eachTag('page',array($this,'_locatePage'));
}
- function locateTemplate($path){
+ function _locateTemplate($path){
return $this->locateURL('template',$path);
}
-
+ function _locatePage($path){
+ return $this->getDestinationURL($path);
+ }
function execute(){
$this->rendered['sub-elements']=array();

0 comments on commit 5d918a7

Please sign in to comment.
Something went wrong with that request. Please try again.