Skip to content

Fix PHP notice in WikiFile::getInfo() (fixes #84)#85

Merged
Xymph merged 3 commits intohamstar:masterfrom
Xymph:84-fix-getinfo-notice
Mar 13, 2017
Merged

Fix PHP notice in WikiFile::getInfo() (fixes #84)#85
Xymph merged 3 commits intohamstar:masterfrom
Xymph:84-fix-getinfo-notice

Conversation

@Xymph
Copy link
Copy Markdown
Collaborator

@Xymph Xymph commented Mar 12, 2017

See #84.

@Xymph Xymph force-pushed the 84-fix-getinfo-notice branch from 6a5acd0 to 8cc4898 Compare March 12, 2017 13:15
@Xymph Xymph mentioned this pull request Mar 13, 2017
Comment thread Wikimate.php
$this->edittoken = $page['edittoken'];

if (!isset($page['missing'])) {
if (!isset($page['missing']) && isset($page['imageinfo'])) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think a comment would be warranted above this line? I'm not sure the behavior you described in #84 is intuitive:

when a file existed but was subsequently deleted or moved to another path, that the MW API does not return the missing property for the requested path anymore. I guess it only does that when the path never existed in the first place.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good point - done.

@waldyrious
Copy link
Copy Markdown
Collaborator

LGTM. Feel free to do any commit cleanup if you feel it's worth it, and merge whenever you're ready.

@Xymph Xymph force-pushed the 84-fix-getinfo-notice branch from 6fbc6a7 to e7022dc Compare March 13, 2017 13:01
@Xymph Xymph merged commit b7dabd8 into hamstar:master Mar 13, 2017
@Xymph
Copy link
Copy Markdown
Collaborator Author

Xymph commented Mar 13, 2017

I fixed up the comment with the code change, but preserved the reference to the changelog discussion. That's a wrap. :)

@Xymph Xymph deleted the 84-fix-getinfo-notice branch March 13, 2017 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants