Changeset 773:64aaeb2b6ef5 for plugins
- Timestamp:
- 11/29/11 08:29:50 (14 years ago)
- Branch:
- default
- Location:
- plugins
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/index.php
r565 r773 211 211 if (DC_ADMIN_URL) 212 212 { 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)); 215 215 216 216 echo -
plugins/blogroll/_public.php
r270 r773 54 54 { 55 55 $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")').'; ?>'; 57 57 } 58 58 -
plugins/pages/page.php
r559 r773 392 392 if ($post_id) { 393 393 $preview_url = 394 $core-> blog->url.$core->url->getBase('pagespreview').'/'.394 $core->url->getURLFor('pagespreview', 395 395 $core->auth->userID().'/'. 396 396 http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')). 397 '/'.$post->post_url ;397 '/'.$post->post_url); 398 398 echo '<a id="post-preview" href="'.$preview_url.'" class="button">'.__('Preview').'</a>'; 399 399 } -
plugins/tags/_admin.php
r753 r773 102 102 public static function postHeaders() 103 103 { 104 $tag_url = $GLOBALS['core']-> blog->url.$GLOBALS['core']->url->getBase('tag');104 $tag_url = $GLOBALS['core']->url->getURLFor('tag'); 105 105 106 106 $opts = $GLOBALS['core']->auth->getOptions(); … … 131 131 public static function postsActionsHeaders() 132 132 { 133 $tag_url = $GLOBALS['core']-> blog->url.$GLOBALS['core']->url->getBase('tag');133 $tag_url = $GLOBALS['core']->url->getURLFor('tag'); 134 134 135 135 $opts = $GLOBALS['core']->auth->getOptions(); -
plugins/tags/_public.php
r413 r773 186 186 { 187 187 $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))').'; ?>'; 190 190 } 191 191 … … 193 193 { 194 194 $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")').'; ?>'; 196 196 } 197 197 … … 205 205 206 206 $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.'")').'; ?>'; 209 209 } 210 210 … … 247 247 { 248 248 $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)).'" '. 250 250 'class="tag'.$rs->roundpercent.'" rel="tag">'. 251 251 $rs->meta_id.'</a> </li>'; … … 257 257 { 258 258 $res .= 259 '<p><strong><a href="'.$core-> blog->url.$core->url->getBase("tags").'">'.259 '<p><strong><a href="'.$core->url->getURLFor("tags").'">'. 260 260 html::escapeHTML($w->alltagslinktitle).'</a></strong></p>'; 261 261 }
Note: See TracChangeset
for help on using the changeset viewer.