GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
Boot should sniff input once and set $CURRENT_SYSTEM_VIEWTYPE accordingly, and users should use elgg_set_viewtype() for changing it.
We should remove the test that makes sure set_input('view') has an effect on viewtype.
@ewinslow this could help offset perf costs in your views overhaul
PR was already made before... #7908
@jdalsem Let me know if you don't have time to work on this. I'm happy to get this in.
perf(engine): Viewtype is auto-detected only once
Elgg no longer checks get_input(‘view’) and $CONFIG->view for every call
of elgg_get_viewtype(). elgg_set_viewtype() must be used to change the
master PR #8663