Dotclear


Ignore:
Timestamp:
12/02/11 08:50:18 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
default
Message:

Last updates to getURLFor : removed blog url from function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/class.dc.template.php

    r772 r776  
    742742     { 
    743743          $f = $this->getFilters($attr); 
    744           return '<?php echo '.sprintf($f,'$core->url->getURLFor("archive")').'; ?>'; 
     744          return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor("archive")').'; ?>'; 
    745745     } 
    746746      
     
    796796           
    797797          $f = $this->getFilters($attr); 
    798           return '<?php echo '.sprintf($f,'$core->url->getURLFor("feed","'.$type.'")').'; ?>'; 
     798          return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor("feed","'.$type.'")').'; ?>'; 
    799799     } 
    800800      
     
    881881     { 
    882882          $f = $this->getFilters($attr); 
    883           return '<?php echo '.sprintf($f,'$core->url->getURLFor(\'rsd\')').'; ?>'; 
     883          return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor(\'rsd\')').'; ?>'; 
    884884     } 
    885885      
     
    10451045           
    10461046          $f = $this->getFilters($attr); 
    1047           return '<?php echo '.sprintf($f,'$core->url->getURLFor("feed","category/".'. 
     1047          return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor("feed","category/".'. 
    10481048          '$_ctx->categories->cat_url."/'.$type.'")').'; ?>'; 
    10491049     } 
     
    10551055     { 
    10561056          $f = $this->getFilters($attr); 
    1057           return '<?php echo '.sprintf($f,'$core->url->getURLFor("category",$_ctx->categories->cat_url)').'; ?>'; 
     1057          return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor("category",'. 
     1058               '$_ctx->categories->cat_url)').'; ?>'; 
    10581059     } 
    10591060      
     
    19341935     { 
    19351936          $f = $this->getFilters($attr); 
    1936           return '<?php echo '.sprintf($f,'$core->url->getURLFor("lang",$_ctx->langs->post_lang)').'; ?>'; 
     1937          return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getURLFor("lang",'. 
     1938               '$_ctx->langs->post_lang)').'; ?>'; 
    19371939     } 
    19381940      
Note: See TracChangeset for help on using the changeset viewer.

Sites map