Skip to content
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

Add option to mark selected page in header.inc #9

Closed
wants to merge 3 commits into from

Conversation

Aaron-Junker
Copy link
Contributor

This mimics the behaviour of www.php.net.

It currently adds this behaviour to the qa page.

@Aaron-Junker
Copy link
Contributor Author

@cmb69 what do I have to do that someone will review this.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Hmm, it looks like all these variables don't really work; e.g. $TITLE is almost always Quality Assurance for web-qa for me, except for those pages where it is explicitly passed to common_header(). Apparently, that has been broken with some "refactoring". I suggest to focus on that first, before introducing more of these variables.

@Aaron-Junker
Copy link
Contributor Author

Aaron-Junker commented Jun 7, 2022

image.

@cmb69 This is now fixed.

@Aaron-Junker Aaron-Junker requested a review from cmb69 June 29, 2022 15:52
@Aaron-Junker
Copy link
Contributor Author

@cmb69

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Your patch does not make any difference, from what I can tell, because $CURRENT_PAGE is not set for qa.php.net.

@Aaron-Junker
Copy link
Contributor Author

@cmb69 I'm very sorry. I thought I mentioned it in the description. I added these in php/web-qa#36

Sorry for tjis inconvenience

@cmb69
Copy link
Member

cmb69 commented Jul 4, 2022

Ah, now I see. Thanks! I think this is okay (I left a comment on the web-qa PR, though), but I really think that we should clean up that terrible code before proceeding with more features.

@Aaron-Junker
Copy link
Contributor Author

Ah, now I see. Thanks! I think this is okay (I left a comment on the web-qa PR, though)

@cmb69 This is now fixed.

but I really think that we should clean up that terrible code before proceeding with more features.

This may be something I will look into in the future (maybe backport changes from web-php to here. See also php/web-php#523). But in my opionion this should not block merging this PR.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

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

Thank you! Looks good to me now.

But in my opionion this should not block merging this PR.

Right. It's just that I want to avoid further improvements, before we have the code cleaned up; at least a bit.

@cmb69 cmb69 closed this in b6ed0a9 Jul 7, 2022
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