Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Extension:SpecialCategoryIntersection rework #13457

Closed
wants to merge 6 commits into from

Conversation

shaedrich
Copy link
Contributor

No description provided.

Copy link
Contributor

@mszabo-wikia mszabo-wikia left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution! I have left a few notes.

@@ -293,12 +289,13 @@ private function showFooter($out){
// Examples are now kept in wikitext so that each wiki can have its own examples if it wishes.
$exampleText = wfMsg('categoryintersection-footer-examples');
$rawExamples = explode("\n\n", $exampleText);
foreach($rawExamples as $singleExample){
$examples = array_map(function($singleExample) {
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no benefit to using array_map here, it is slower than the foreach loop and does not make the code more readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay, I reverted it.

if(!startsWith($cat, $this->CATEGORY_NS_PREFIX)){
$html .= "<em>Warning: \"$cat\" does not start with \"{$this->CATEGORY_NS_PREFIX}\".</em><br/>\n";
}
$categories[] = (!startsWith($cat, $this->CATEGORY_NS_PREFIX) and !startsWith($cat, NS_CATEGORY)) ? $this->CATEGORY_NS_PREFIX.$cat : $cat;
Copy link
Contributor

Choose a reason for hiding this comment

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

FANDOM follows MediaWiki's PHP coding conventions. Please ensure your contributions follow this coding style.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no problem, I altered it to an if

Copy link
Contributor Author

@shaedrich shaedrich left a comment

Choose a reason for hiding this comment

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

I hope everything is proper now.

@shaedrich
Copy link
Contributor Author

@tk-999 First, @macbre added these two labels. So it seemed to me like the pr was desirable. So you delete it and I asked myself what your intent was...

@mszabo-wikia
Copy link
Contributor

After internal discussion it was determined we cannot accept such feature requests for now to maintain compliance with the Pull Request Policy.

@shaedrich
Copy link
Contributor Author

Thank's for your explanation :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants