Dotclear


Ignore:
Timestamp:
06/19/14 16:56:47 (11 years ago)
Author:
Dsls
Branch:
default
Message:

One step further towards php hardcoded links annihilation in admin sources, more to come...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/blogs.php

    r2566 r2720  
    9999{ 
    100100     if ($core->auth->isSuperAdmin()) { 
    101           echo '<p class="top-add"><a class="button add" href="blog.php">'.__('Create a new blog').'</a></p>'; 
     101          echo '<p class="top-add"><a class="button add" href="'.$core->adminurl->get("admin.blog").'">'.__('Create a new blog').'</a></p>'; 
    102102     } 
    103103 
    104104     echo 
    105      '<form action="blogs.php" method="get" id="filters-form">'. 
     105     '<form action="'.$core->adminurl->get("admin.blogs").'" method="get" id="filters-form">'. 
    106106     '<h3 class="hidden">'.__('Filter blogs list').'</h3>'. 
    107107 
     
    183183     if ($GLOBALS['core']->auth->isSuperAdmin()) { 
    184184          $edit_link = 
    185           '<a href="blog.php?id='.$blog_id.'"  title="'.sprintf(__('Edit blog settings for %s'),$blog_id).'">'. 
     185          '<a href="'.$core->adminurl->get("admin.blog",array('id' => $blog_id)).'"  title="'.sprintf(__('Edit blog settings for %s'),$blog_id).'">'. 
    186186          '<img src="images/edit-mini.png" alt="'.__('Edit blog settings').'" /> '.$blog_id.'</a> '; 
    187187     } else { 
     
    198198     '<tr class="line">'. 
    199199     '<td class="nowrap">'.$edit_link.'</td>'. 
    200      '<td class="maximal"><a href="index.php?switchblog='.$rs->blog_id.'" '. 
     200     '<td class="maximal"><a href="'.$core->adminurl->get("admin.home",array('switchblog' => $rs->blog_id)).'" '. 
    201201     'title="'.sprintf(__('Switch to blog %s'),$rs->blog_id).'">'. 
    202202     html::escapeHTML($rs->blog_name).'</a></td>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map