Changeset 1694:a699f8de9232 for inc
- Timestamp:
- 09/02/13 12:55:13 (12 years ago)
- Branch:
- default
- Location:
- inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.core.php
r1593 r1694 345 345 } 346 346 347 public function setPostType($type,$admin_url,$public_url )347 public function setPostType($type,$admin_url,$public_url,$label='') 348 348 { 349 349 $this->post_types[$type] = array( 350 350 'admin_url' => $admin_url, 351 'public_url' => $public_url 351 'public_url' => $public_url, 352 'label' => ($label != '' ? $label : $type) 352 353 ); 353 354 } -
inc/prepend.php
r1468 r1694 220 220 $core->url->register('xmlrpc','xmlrpc','^xmlrpc/(.+)$',array('dcUrlHandlers','xmlrpc')); 221 221 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'); 223 223 224 224 # Store upload_max_filesize in bytes
Note: See TracChangeset
for help on using the changeset viewer.