Changeset 1777
- Timestamp:
- 10/27/09 17:55:39 (13 years ago)
- Location:
- plugins/pageMaker/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pageMaker/trunk/_define.php
r1771 r1777 15 15 /* Description*/ "Create pages for entries and comments lists", 16 16 /* Author */ "Tomtom (http://blog.zenstyle.fr)", 17 /* Version */ '0.5. 2',17 /* Version */ '0.5.3', 18 18 /* Permissions */ 'usage', 19 19 /* Priority */ 100010 -
plugins/pageMaker/trunk/inc/class.page.maker.php
r1554 r1777 21 21 { 22 22 $end_entry = '/page/%s'; 23 $end_comment = '/c/% s#comments';23 $end_comment = '/c/%1$s%2$s'; 24 24 25 25 $this->base_url = $GLOBALS['_ctx']->posts->getURL(); … … 27 27 if ($params['type'] === 'post') { 28 28 $this->base_url .= $end_entry; 29 $this->base_url .= isset($params['post_comment_current']) ? sprintf($end_comment,$params['post_comment_current'] ) : '';29 $this->base_url .= isset($params['post_comment_current']) ? sprintf($end_comment,$params['post_comment_current'],'') : ''; 30 30 } 31 31 elseif ($params['type'] === 'comment') { 32 32 $this->base_url .= isset($params['post_page_current']) ? sprintf($end_entry,$params['post_page_current']) : ''; 33 $this->base_url .= $end_comment;33 $this->base_url .= sprintf($end_comment,'%s','#comments'); 34 34 } 35 35
Note: See TracChangeset
for help on using the changeset viewer.