summaryrefslogtreecommitdiffstats
path: root/lib/private/template.php
Commit message (Collapse)AuthorAgeFilesLines
* Catch class Error on all root entrypointsThomas Müller2016-04-201-1/+1
|
* Add unit testing capabilities for templates (#23708)Thomas Müller2016-04-121-3/+5
| | | | Add unit testing capabilities for templates
* load mobile styles last, fix #19596Jan-Christoph Borchardt2016-04-051-6/+6
|
* In case of exception we return an html page in case the client is a browserThomas Müller2016-03-241-1/+4
|
* More fixesJoas Schilling2016-02-091-15/+7
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2016-02-081-1/+8
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Add new CSRF manager for unit testing purposesLukas Reschke2016-01-251-2/+2
| | | | This adds a new CSRF manager for unit testing purposes, it's interface is based upon https://github.com/symfony/security-csrf. Due to some of our required custom changes it is however not possible to use the Symfony component directly.
* Happy new year!Thomas Müller2016-01-121-2/+3
|
* OC_TemplateLayout -> OC\TemplateLayoutMorris Jobke2016-01-071-1/+1
|
* Since avatar.js is now essentially empty remove itRoeland Jago Douma2015-12-171-1/+0
|
* Load base64 polyfill in IE and friendsVincent Petry2015-12-141-0/+2
|
* Use \OCP\Util::sanitizeHTML instead of \OC_Util::sanitizeHTMLLukas Reschke2015-12-081-3/+3
|
* Now using IE8 workaround of davclient.js for all IE versionsVincent Petry2015-11-221-2/+2
|
* Add evert's davclient.js + es6-promise + IE8 workaroundVincent Petry2015-11-221-2/+9
| | | | | | - Add davclient.js lib - Add es6-promise required by that lib - Wrote IE8 workaround lib/shim for davclient.js
* Merge pull request #20465 from owncloud/forms.cssThomas Müller2015-11-161-0/+1
|\ | | | | Move form styles from styles.css to inputs.css
| * move form styles from styles.css to inputs.cssHendrik Leppelsack2015-11-131-0/+1
| |
* | Do not use the asset pipeline when doing updatesJoas Schilling2015-11-111-0/+11
|/
* Global Classes for Core.Raghu Nayyar2015-11-021-0/+1
| | | | | | | | Move up the global styles up the hierarchy. Adds Clear Left, Right and both. New CSS file for Global Styles.
* Update license headersLukas Reschke2015-10-261-0/+1
|
* Merge pull request #19537 from owncloud/fix-white-page-of-deathThomas Müller2015-10-071-19/+64
|\ | | | | Fixes last causes for WSOD
| * Do not trigger the update exception when we already show an errorJoas Schilling2015-10-071-3/+3
| |
| * validate HTTP protocol in case of an exceptionMorris Jobke2015-10-061-2/+24
| |
| * Fixes last causes for WSODMorris Jobke2015-10-061-16/+39
| | | | | | | | * print plain text if rendering of exception/error page is not possible
* | update licence headers via scriptMorris Jobke2015-10-051-0/+1
|/
* add $prepend option to addStyle() & addVendorStyle()Individual IT Services2015-09-251-14/+14
|
* Clean codeThomas Müller2015-09-241-56/+66
|
* do not load unnecessary code in case of webdavIndividual IT Services2015-09-231-0/+77
| | | | | | | | | | | | changing from "protected static" to "protected" as suggested by @nickvergessen https://github.com/owncloud/core/pull/19114#discussion_r39719851 moving initTemplate() into template constr. reduce to move initTemplate only cleanup spaces
* Remove DEBUG constant and use config valueMorris Jobke2015-08-241-1/+1
| | | | | * introduces config.php option 'debug' that defaults to false * migrate DEBUG constant to config value
* [PHP 7] Change type hint to also accept ErrorsLukas Reschke2015-08-041-2/+2
| | | | | | PHP 7 changed the exception types and thus our error handler needs to be able to catch this. Without this in some cases just a white page is shown instead of an error message.
* Update license headersJenkins for ownCloud2015-03-261-13/+23
|
* show exception type in debug modeRobin Appelman2015-03-201-0/+1
|
* Revert "Updating license headers"Morris Jobke2015-02-261-23/+14
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-14/+23
|
* Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke2015-02-161-2/+3
| | | | | | | | | | This changeset removes the static class `OC_Request` and moves the functions either into `IRequest` which is accessible via `\OC::$server::->getRequest()` or into a separated `TrustedDomainHelper` class for some helper methods which should not be publicly exposed. This changes only internal methods and nothing on the public API. Some public functions in `util.php` have been deprecated though in favour of the new non-static functions. Unfortunately some part of this code uses things like `__DIR__` and thus is not completely unit-testable. Where tests where possible they ahve been added though. Fixes https://github.com/owncloud/core/issues/13976 which was requested in https://github.com/owncloud/core/pull/13973#issuecomment-73492969
* Respect `mod_unique_id` and refactor `OC_Request::getRequestId`Lukas Reschke2015-02-091-1/+1
| | | | | | | | | | | | | | When `mod_unique_id` is enabled the ID generated by it will be used for logging. This allows for correlation of the Apache logs and the ownCloud logs. Testplan: - [ ] When `mod_unique_id` is enabled the request ID equals the one generated by `mod_unique_id`. - [ ] When `mod_unique_id` is not available the request ID is a 20 character long random string - [ ] The generated Id is stable over the lifespan of one request Changeset looks a little bit larger since I had to adjust every unit test using the HTTP\Request class for proper DI. Fixes https://github.com/owncloud/core/issues/13366
* allow css/js asset directory to be relocated (#13053)Adam Williamson2015-01-051-2/+3
| | | | | | | | | | This allows the directory where CSS/JS asset collections are written to be changed, in case SERVERROOT is not writeable. Note it does *not* allow the expected URL to be changed: whatever directory is used, the server must be configured to serve it at WEBROOT/assets. It may be possible to add another config parameter to allow the admin to specify a custom asset URL, but I thought I'd keep the first implementation simple.
* Fix extra quotes in custom tags in headerdrarko2014-12-181-1/+1
| | | Fix #12939
* Drop form_factor that is appended to JS, CSS and template filenamesMorris Jobke2014-11-121-69/+4
|
* Fix the "addHeader($tag, $attributes, $text)" methods to not ignore the ↵Lukas Reschke2014-10-281-6/+21
| | | | | | | | | $text parameter Also support closing tags with no text content given Conflicts: lib/private/template.php
* adding cssmin and jssmin(minify)Thomas Müller2014-10-171-2/+32
| | | | | | adding argument deleteSelf to rmdirr() - if false the directory itself will not be deleted only it's content adding repair step to clean the asset cache after upgrade + coding style adjustments
* Do not show exception to the end-userLukas Reschke2014-09-171-25/+12
| | | | Log the error instead of potentially leaking sensitive information
* Use public api for getting l10nRobin Appelman2014-08-311-1/+1
|
* Don't register the call when rendering error pagesRobin Appelman2014-08-291-4/+5
|
* kill OC::$sessionJörn Friedrich Dreyer2014-08-291-6/+6
| | | | | | | | | | | | maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
* Escape error messagesLukas Reschke2014-08-271-4/+4
|
* Remove all occurences of @brief and @returns from PHPDocMorris Jobke2014-05-191-11/+11
| | | | * test case added to avoid adding them later
* Now settings CSS class with appid in content DIVVincent Petry2014-05-151-1/+3
|
* Some more PHPDoc fixesLukas Reschke2014-04-211-2/+2
|
* Fix indentationLukas Reschke2014-04-131-1/+2
|
* Move security headers to base.phpLukas Reschke2014-04-131-25/+1
| | | | | Some headers were currently only added to the templates but not to other components (e.g. SabreDAV / JSON / etc...) The migration to base.php ensures that the headers are served to all requests passing base.php