summaryrefslogtreecommitdiffstats
path: root/lib/private/URLGenerator.php
Commit message (Collapse)AuthorAgeFilesLines
* Prevent empty base URL during installationLouis Chemineau2021-09-291-1/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use IURLGenerator function to get value of `\OC::$WEBROOT` globalJonas Meurer2021-08-161-0/+7
| | | | Signed-off-by: Jonas Meurer <jonas@freesources.org>
* cache baseurl in url generatorRobin Appelman2021-03-101-1/+6
| | | | | | Servers don't tend to change their url in the middle of a request Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove some IRouter methodsRoeland Jago Douma2020-11-171-3/+3
| | | | | | | | | This is not the end. IRouter needs to burn. But it is a start. 🎵 we didn't start the fire 🎵 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-11/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Properly inject IRouter into URLGenerator to properly encapsulate testsMorris Jobke2020-08-191-9/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-191-42/+45
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-7/+6
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-3/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix generation of an url to an absolute ocs route when NC in subfolderArthur Schiwon2019-11-291-2/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Allow empty strings in getAbsoluteURLJoas Schilling2018-11-201-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add function to generate urls for OCS routesRoeland Jago Douma2018-10-091-0/+13
| | | | | | | | | | fixes #11617 The OCS routes are only absolute for now as they are often exposed to the outside anyway and are on a different endpoint than index.php in anyway. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix check if theming defaults instance is availableMorris Jobke2018-02-271-1/+5
| | | | | | | | The check in URLGenerator.php#169 and Server.php#945 are different and thus the DI container could return a \OC_Defaults object which does not provide the wanted method caising a PHP error. Fixes #8420 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make the URLGenerator strictRoeland Jago Douma2018-01-141-19/+17
| | | | | | | | | * Add scalar argument types * Add return types * Make strict * General phpstorm cleanup Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Also replace all other occurencesMorris Jobke2017-12-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move theming related imagePath logic to ThemingDefaultsJulius Härtl2017-09-121-8/+7
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Prefer custom theme over theming appJulius Härtl2017-07-121-13/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add tests and inject IRequestJulius Härtl2017-06-161-3/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make cache and scss caching depend on the baseUrlJulius Härtl2017-06-151-7/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Theme image for favicon-fb.pngLukas Reschke2017-06-091-4/+8
| | | | | | Fixes https://github.com/nextcloud/server/issues/5322 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Check if the theming app is loadedJulius Haertl2016-12-091-1/+1
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Do not trigger appconfig queries when we are not yet installedRoeland Jago Douma2016-11-211-2/+3
| | | | | | Fixes #2209 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #1602 from nextcloud/ignore-mod-envLukas Reschke2016-11-181-1/+2
|\ | | | | Add system config htaccess.IgnoreFrontController for prettyURLs w/o mod_env
| * Add system config htaccess.IgnoreFrontController for prettyURLs w/o mod_envFelix Epp2016-11-161-1/+2
| | | | | | | | | | | | | | Added the system config which sets all conditions to true that query the FrontControllerActive mod_env variable. Signed-off-by: Felix A. Epp <work@felixepp.de>
* | Check if dynamic icons can be usedJulius Haertl2016-11-181-2/+2
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Add cachebuster to faviconsJulius Haertl2016-11-181-2/+4
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Theming: Fix default parameters in icon routesJulius Haertl2016-11-181-0/+2
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Theming: Add favicon-touch and fix icon creation with non svg imagesJulius Haertl2016-11-181-1/+3
| | | | | | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* | Core: load favicon from theming appJulius Haertl2016-11-181-1/+3
|/ | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Make sure we try to autoload the classJoas Schilling2016-07-221-1/+2
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Use the themed Defaults everywhereJoas Schilling2016-07-151-2/+2
|
* Update license headersLukas Reschke2016-05-261-1/+2
|
* Update imagePath to prefer theme, then app, then core imagesmmccarn2016-05-231-10/+13
| | | | | | | | | | | | | | | | imagePath updated so that image searches follow this priority: 1) /themes/$theme/apps/$app/img 2) /themes/$theme/$app/img 3) /themes/$theme/core/img 4) $appPath/img 5) /$app/img 6) /core/img For each folder: - if the specified file exists, use it. - otherwise, if $basename.svg does NOT exist, try $basename.png (This might better be "if filename was an svg, try the png"...)
* Move more from \OC to PSR-4Roeland Jago Douma2016-04-291-0/+224
* \OC\OCSClient * \OC\Preview * \OC\PreviewManager * \OC\Repair * \OC\RepairException * \OC\Search * \OC\ServerContainer * \OC\ServerNotAvailableException * \OC\ServiceUnavailableException * \OC\Setup * \OC\Streamer * \OC\SubAdmin * \OC\SystemConfig * \OC\TagManager * \OC\Tags * \OC\TempManager * \OC\TemplateLayout * \OC\URLGenerator * \OC\Updater