| | @@ -269,11 +269,11 @@ |
| 269 | 269 | if( g.perm.Hyperlink ){ |
| 270 | 270 | style_submenu_element("History", "History", "%s/whistory?name=%T", |
| 271 | 271 | g.zTop, zPageName); |
| 272 | 272 | } |
| 273 | 273 | } |
| 274 | | - style_set_current_page("%s?name=%T", g.zPath, zPageName); |
| 274 | + style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 275 | 275 | style_header(zPageName); |
| 276 | 276 | blob_init(&wiki, zBody, -1); |
| 277 | 277 | wiki_render_by_mimetype(&wiki, zMimetype); |
| 278 | 278 | blob_reset(&wiki); |
| 279 | 279 | attachment_list(zPageName, "<hr /><h2>Attachments:</h2><ul>"); |
| | @@ -439,11 +439,11 @@ |
| 439 | 439 | return; |
| 440 | 440 | } |
| 441 | 441 | if( zBody==0 ){ |
| 442 | 442 | zBody = mprintf("<i>Empty Page</i>"); |
| 443 | 443 | } |
| 444 | | - style_set_current_page("%s?name=%T", g.zPath, zPageName); |
| 444 | + style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 445 | 445 | style_header("Edit: %s", zPageName); |
| 446 | 446 | if( !goodCaptcha ){ |
| 447 | 447 | @ <p class="generalError">Error: Incorrect security code.</p> |
| 448 | 448 | } |
| 449 | 449 | blob_zero(&wiki); |
| | @@ -667,11 +667,11 @@ |
| 667 | 667 | } |
| 668 | 668 | if( P("cancel")!=0 ){ |
| 669 | 669 | cgi_redirectf("wiki?name=%T", zPageName); |
| 670 | 670 | return; |
| 671 | 671 | } |
| 672 | | - style_set_current_page("%s?name=%T", g.zPath, zPageName); |
| 672 | + style_set_current_page("%T?name=%T", g.zPath, zPageName); |
| 673 | 673 | style_header("Append Comment To: %s", zPageName); |
| 674 | 674 | if( !goodCaptcha ){ |
| 675 | 675 | @ <p class="generalError">Error: Incorrect security code.</p> |
| 676 | 676 | } |
| 677 | 677 | if( P("preview")!=0 ){ |
| 678 | 678 | |