-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
@cmb69 what do I have to do that someone will review 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.
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.
@cmb69 This is now fixed. |
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.
Your patch does not make any difference, from what I can tell, because $CURRENT_PAGE
is not set for qa.php.net.
@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 |
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. |
@cmb69 This is now fixed.
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. |
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.
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.
This mimics the behaviour of www.php.net.
It currently adds this behaviour to the qa page.