Dotclear

Changeset 773:64aaeb2b6ef5 for plugins


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

Updated core plugins with new $core->url->getURLFor

Location:
plugins
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/index.php

    r565 r773  
    211211     if (DC_ADMIN_URL) 
    212212     { 
    213           $ham_feed = $core->blog->url.$core->url->getBase('hamfeed').'/'.$code = dcAntispam::getUserCode($core); 
    214           $spam_feed = $core->blog->url.$core->url->getBase('spamfeed').'/'.$code = dcAntispam::getUserCode($core); 
     213          $ham_feed = $core->url->getURLFor('hamfeed',$code = dcAntispam::getUserCode($core)); 
     214          $spam_feed = $core->url->getBase('spamfeed',$code = dcAntispam::getUserCode($core)); 
    215215 
    216216          echo 
  • plugins/blogroll/_public.php

    r270 r773  
    5454     { 
    5555          $f = $GLOBALS['core']->tpl->getFilters($attr); 
    56           return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getBase("xbel")').'; ?>'; 
     56          return '<?php echo '.sprintf($f,'$core->url->getURLFor("xbel")').'; ?>'; 
    5757     } 
    5858      
  • plugins/pages/page.php

    r559 r773  
    392392     if ($post_id) { 
    393393          $preview_url = 
    394           $core->blog->url.$core->url->getBase('pagespreview').'/'. 
     394          $core->url->getURLFor('pagespreview', 
    395395          $core->auth->userID().'/'. 
    396396          http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')). 
    397           '/'.$post->post_url; 
     397          '/'.$post->post_url); 
    398398          echo '<a id="post-preview" href="'.$preview_url.'" class="button">'.__('Preview').'</a>'; 
    399399     } 
  • plugins/tags/_admin.php

    r753 r773  
    102102     public static function postHeaders() 
    103103     { 
    104           $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getBase('tag'); 
     104          $tag_url = $GLOBALS['core']->url->getURLFor('tag'); 
    105105           
    106106          $opts = $GLOBALS['core']->auth->getOptions(); 
     
    131131     public static function postsActionsHeaders() 
    132132     { 
    133           $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getBase('tag'); 
     133          $tag_url = $GLOBALS['core']->url->getURLFor('tag'); 
    134134           
    135135          $opts = $GLOBALS['core']->auth->getOptions(); 
  • plugins/tags/_public.php

    r413 r773  
    186186     { 
    187187          $f = $GLOBALS['core']->tpl->getFilters($attr); 
    188           return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getBase("tag").'. 
    189           '"/".rawurlencode($_ctx->meta->meta_id)').'; ?>'; 
     188          return '<?php echo '.sprintf($f,'$core->url->getURLFor("tag",'. 
     189          'rawurlencode($_ctx->meta->meta_id))').'; ?>'; 
    190190     } 
    191191      
     
    193193     { 
    194194          $f = $GLOBALS['core']->tpl->getFilters($attr); 
    195           return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getBase("tags")').'; ?>'; 
     195          return '<?php echo '.sprintf($f,'$$core->url->getURLFor("tags")').'; ?>'; 
    196196     } 
    197197      
     
    205205           
    206206          $f = $GLOBALS['core']->tpl->getFilters($attr); 
    207           return '<?php echo '.sprintf($f,'$core->blog->url.$core->url->getBase("tag_feed")."/".'. 
    208           'rawurlencode($_ctx->meta->meta_id)."/'.$type.'"').'; ?>'; 
     207          return '<?php echo '.sprintf($f,'$core->url->getURLFor("tag_feed",'. 
     208          'rawurlencode($_ctx->meta->meta_id)."/'.$type.'")').'; ?>'; 
    209209     } 
    210210      
     
    247247          { 
    248248               $res .= 
    249                '<li><a href="'.$core->blog->url.$core->url->getBase('tag').'/'.rawurlencode($rs->meta_id).'" '. 
     249               '<li><a href="'.$core->url->getURLFor('tag',rawurlencode($rs->meta_id)).'" '. 
    250250               'class="tag'.$rs->roundpercent.'" rel="tag">'. 
    251251               $rs->meta_id.'</a> </li>'; 
     
    257257          { 
    258258               $res .= 
    259                '<p><strong><a href="'.$core->blog->url.$core->url->getBase("tags").'">'. 
     259               '<p><strong><a href="'.$core->url->getURLFor("tags").'">'. 
    260260               html::escapeHTML($w->alltagslinktitle).'</a></strong></p>'; 
    261261          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map