Dotclear

Changeset 1694:a699f8de9232 for inc


Ignore:
Timestamp:
09/02/13 12:55:13 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add some information on blog's users list (users tab on blog parameters)

Location:
inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.core.php

    r1593 r1694  
    345345     } 
    346346      
    347      public function setPostType($type,$admin_url,$public_url) 
     347     public function setPostType($type,$admin_url,$public_url,$label='') 
    348348     { 
    349349          $this->post_types[$type] = array( 
    350350               'admin_url' => $admin_url, 
    351                'public_url' => $public_url 
     351               'public_url' => $public_url, 
     352               'label' => ($label != '' ? $label : $type) 
    352353          ); 
    353354     } 
  • inc/prepend.php

    r1468 r1694  
    220220$core->url->register('xmlrpc','xmlrpc','^xmlrpc/(.+)$',array('dcUrlHandlers','xmlrpc')); 
    221221 
    222 $core->setPostType('post','post.php?id=%d',$core->url->getURLFor('post','%s')); 
     222$core->setPostType('post','post.php?id=%d',$core->url->getURLFor('post','%s'),'Posts'); 
    223223 
    224224# Store upload_max_filesize in bytes 
Note: See TracChangeset for help on using the changeset viewer.

Sites map