Dotclear

Changeset 772:2465bf307591 for admin


Ignore:
Timestamp:
11/28/11 10:26:03 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
default
Message:

Added new method getURLFor in urlhandler
2 new behaviors :

  • publicGetURLFor
  • publicRegisterURL

All changes are backward compatibles, news plugins will be encouraged
to use new urlhandler method for public URLs generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r747 r772  
    387387     if ($post_id) { 
    388388          $preview_url = 
    389           $core->blog->url.$core->url->getBase('preview').'/'. 
    390           $core->auth->userID().'/'. 
     389          $core->url->getURLFor('preview',$core->auth->userID().'/'. 
    391390          http::browserUID(DC_MASTER_KEY.$core->auth->userID().$core->auth->getInfo('user_pwd')). 
    392           '/'.$post->post_url; 
     391          '/'.$post->post_url); 
    393392          echo '<a id="post-preview" href="'.$preview_url.'" class="button">'.__('Preview').'</a> '; 
    394393     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map