-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed bugs on Wiki and resolved #667 #674
Conversation
@@ -89,7 +89,7 @@ func discardLocalWikiChanges(localPath string) error { | |||
} | |||
|
|||
// updateWikiPage adds new page to repository wiki. | |||
func (repo *Repository) updateWikiPage(doer *User, oldTitle, title, content, message string, isNew bool) (err error) { | |||
func (repo *Repository) updateWikiPage(doer *User, oldWikiPath, wikiPath, content, message string, isNew bool) (err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete wiki by path not the title. we have to give the real meaning of the variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But now wikiPath
contains the title of the page and not the /path/to/wiki/page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. wikiPath
will not contain title. See AddWikiPage
and EditWikiPage
which will call the function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now I see, I created single word wiki pages. When you do that it looks like title == wikiPath
I've looked through it, didn't see any errors 🎉 |
LGTM |
The previous version didn't diff
wiki title
andwiki page path
. This PR will diff them clearly in variable names.