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

do not load unnecessary code in case of webdav #19114

Closed
wants to merge 2 commits into from
Closed

do not load unnecessary code in case of webdav #19114

wants to merge 2 commits into from

Conversation

individual-it
Copy link
Member

skip loading stuff that is not needed for WebDAV

@@ -76,6 +76,9 @@ class Server extends SimpleContainer implements IServerContainer {
/** @var string */
private $webRoot;

/** @var string */
protected static $service = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

please not static!

@icewind1991
Copy link
Contributor

It would be better to defer the call to initTemplateEngine to whenever the first template is constructed so we do it on demand

(addScript would need some changes to make sure the ordering stays correct)

individual-it added a commit that referenced this pull request Sep 23, 2015
changing from "protected static" to "protected"
as suggested by @nickvergessen
#19114 (comment)

moving initTemplate() into template constr.

reduce to move initTemplate only

cleanup spaces
@individual-it
Copy link
Member Author

closing in favor of #19293
will think about registerLocalAddressBook(); & registerPreviewHooks(); and open a ne PR if I have a good idea

@individual-it individual-it deleted the reduce_unnecessary_loading branch September 25, 2015 14:17
@lock lock bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants