aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/util.php
Commit message (Collapse)AuthorAgeFilesLines
* Move legacy classes from PSR0 to PSR4Christoph Wurst2020-04-071-1470/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19781 from ↵Robin Appelman2020-04-011-5/+3
|\ | | | | | | | | nextcloud/quota-include-external-dont-use-current-user Dont always use the current users quota when calculating storage info
| * Dont always use the current users quota when calculating storage infoRobin Appelman2020-03-041-5/+3
| | | | | | | | | | | | | | | | | | | | instead pass the quota as parameter. Without this fix, when 'quota_include_external_storage' is enabled, the webui will show the quota configured for the admin for every user instead of the users quota Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Update util.phpJohn Molakvoæ2020-03-281-2/+1
| |
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-44/+44
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-5/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Always check via http and https whether htaccess is workingJoas Schilling2019-08-231-1/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* instead of upsert, fallback to default query on PgSQL <= 9.4Arthur Schiwon2019-08-141-2/+2
| | | | | | because there is no upsert yet Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fixes the check for postgresqlArthur Schiwon2019-07-181-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Prevent faulty logs from nested setupFS callsJoas Schilling2019-05-151-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #13927 from nextcloud/remove-dead-codeMorris Jobke2019-02-011-50/+0
|\ | | | | Don't call apc_delete_file and apc_clear_cache anymore
| * Remove deleteFromOpcodeCache & clearOpcodeCacheDaniel Kesselberg2019-01-301-31/+0
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * Don't call apc_delete_file and apc_clear_cache anymoreDaniel Kesselberg2019-01-301-25/+6
| | | | | | | | | | | | | | There is no apc for PHP7+ so there is no need to check if exist. accelerator_reset looks even more ancient. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Improve data directory write checking for NFS mountsRobert Dailey2019-01-241-7/+15
|/ | | | | | | | | | | | | If `is_writable()` fails, fall back to logic that attempts to create a file and then checks if it exists. If this check fails, an error occurs as it did before. Discussion on this solution was found here: https://help.nextcloud.com/t/write-errors-for-nfs-mount/23328 Fixes #7124 Signed-off-by: Robert Dailey <rcdailey@gmail.com>
* PHP module is named mbstringMorris Jobke2018-12-041-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix string doc type casingChristoph Wurst2018-11-151-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #11613 from nextcloud/add-missing-throw-statementMorris Jobke2018-10-041-1/+2
|\ | | | | add missing throw statement to doc block
| * add missing throw statement to doc blockBjoern Schiessle2018-10-041-1/+2
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Remove unused code in legacy classesMorris Jobke2018-10-031-61/+24
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Drop support for xcacheDaniel Kesselberg2018-08-121-8/+0
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Check if HTTP_USER_AGENT is set before using itRoeland Jago Douma2018-08-081-0/+4
| | | | | | | Sentry reported some errors regarding this. Apparently not everybody sets a user agent. If it is not set we assume this is not IE ;) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Design structure fixesJohn Molakvoæ (skjnldsv)2018-07-211-0/+10
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #8188 from arnowelzel/masterMorris Jobke2018-07-201-2/+2
|\ | | | | Avoid error messages for restricted opcache API
| * Avoid error messages for restricted opcache APIArno Welzel2018-02-051-2/+2
| |
* | Fix accessibility invertJohn Molakvoæ (skjnldsv)2018-07-191-2/+9
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Change status code when config is write protectedEric Masseran2018-06-261-1/+3
| | | | | | | | | | | | | | | | | | | | Add hint msg, you can make config file read only If the config.php is not writable, print an error message: #6893 - set config writable - or set option to keep it read only Signed-off-by: Eric Masseran <rico.masseran@gmail.com>
* | Make it possible to make external storages read onlyRoeland Jago Douma2018-05-011-0/+17
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | move log constants to ILoggerArthur Schiwon2018-04-261-4/+5
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Use proper method to format absolute timestampMorris Jobke2018-03-121-23/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Simplify ternary operator statementsMorris Jobke2018-01-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove IAppConfig::getValueRoeland Jago Douma2018-01-171-3/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup OC_User and OCP\UserMorris Jobke2018-01-161-1/+1
| | | | | | * mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated \OCP\ConfigRoeland Jago Douma2018-01-131-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7334 from ↵blizzz2017-12-081-1/+17
|\ | | | | | | | | nextcloud/feature/noid/language-depending-skeleton-directory Allow `{lang}` as a placeholder in the skeleton directory
| * Fallback to "default" and check if directory existsMorris Jobke2017-12-081-1/+4
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Allow `{lang}` as a placeholder in the skeleton directoryJoas Schilling2017-11-291-1/+14
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Allow to skip data dir permission checks by configArthur Schiwon2017-11-301-1/+4
|/ | | | | | | Enables installation on services that don't allow/support permission changes. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Get the Installer via DIMorris Jobke2017-11-251-2/+9
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use basename() instead of self implementationMorris Jobke2017-11-231-10/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-2/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Some more invalid PHPDocs in legacy classesLukas Reschke2017-08-011-3/+2
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Replace wrong PHPDocsLukas Reschke2017-08-011-3/+16
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use IConfig instead of static OCP\ConfigMorris Jobke2017-07-271-2/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update setupchecks.jsrakekniven2017-05-311-2/+2
| | | | | | | | | | | Fixed typo and removed doclink symbol. Reported at transifex Update util.php Another l10n improvement from transifex. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Setup root FS for multibucket object storageMorris Jobke2017-05-101-1/+46
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix missing placeholder for doc linkJoas Schilling2017-05-101-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>