summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
Commit message (Collapse)AuthorAgeFilesLines
* Pass template parameters to parent templateJulius Härtl2018-02-271-1/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #8424 from nextcloud/fix/update-appRoeland Jago Douma2018-02-191-1/+1
|\ | | | | Fix updating an app
| * Fix updating an upChristoph Wurst2018-02-191-1/+1
| | | | | | | | | | | | | | | | OC_App has been made strict recently and the updater code was not compatible to this. This adds the array to string conversion of the Nextcloud version and fixes a typo in OC_App (sstring -> string) Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use normal header() calls instead of private method callsMorris Jobke2018-02-192-10/+4
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add remaining type hints, that were already okayMorris Jobke2018-02-171-33/+34
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Always return a string in OC_App::getCurrentApp and no booleanMorris Jobke2018-02-171-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use empty array as group list in OC_App::enableMorris Jobke2018-02-171-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Refactor dependencies in setAppTypesMorris Jobke2018-02-171-6/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix app version to be always string and neither array nor nullMorris Jobke2018-02-171-5/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* OC_App::loadApps now only accepts an array as type listMorris Jobke2018-02-171-9/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Migrate to short array syntaxMorris Jobke2018-02-171-18/+18
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8095 from nextcloud/webapps-capabilitiesMorris Jobke2018-02-151-29/+4
|\ | | | | Expose navigation entries as API endpoint
| * Deprecate static methods and use Navigation managerJulius Härtl2018-02-121-0/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Move navigation processing to the NavigationManagerJulius Härtl2018-02-121-29/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add throws annotationJulius Härtl2018-02-151-0/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Properly encapsulate require_once for app.phpJulius Härtl2018-02-151-11/+12
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #8134 from coliff/patch-2Joas Schilling2018-02-021-1/+1
|\ | | | | Update iOS link to geo-detect & show correct store listing
| * Update defaults.phpChristian Oliff2018-02-021-1/+1
| |
* | Update doc link version to 14Morris Jobke2018-02-011-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove OC_App::removeAppJulius Härtl2018-01-311-13/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove OC_App::installApp since it is not used anymoreJulius Härtl2018-01-311-57/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move getAppInfo and getAppVersion to IAppManagerJulius Härtl2018-01-311-43/+7
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not cache the settings/sections in the database anymoreJoas Schilling2018-01-291-4/+22
| | | | | | | This caused more troubles then it had benefits, especially when an app got disabled or was removed without being disabled. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-265-7/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8054 from nextcloud/substr-use-indexMorris Jobke2018-01-261-3/+3
|\ | | | | Use index based string access for substr with length of 1
| * Use index based string access for substr with length of 1Morris Jobke2018-01-261-3/+3
| | | | | | | | 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>
* | Use type casting instead of *val() methodMorris Jobke2018-01-263-5/+5
| | | | | | | | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #8053 from nextcloud/simplify-substrJoas Schilling2018-01-261-1/+1
|\ \ | | | | | | Use short for of substr to not need strlen()
| * | Use short for of substr to not need strlen()Morris Jobke2018-01-251-1/+1
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-262-4/+2
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7911 from nextcloud/improve-oc_imageJulius Härtl2018-01-181-36/+14
|\ | | | | Improve OC_Image code to not guess the type of input
| * Improve OC_Image code to not guess the type of input, but actually request ↵Morris Jobke2018-01-181-36/+14
| | | | | | | | | | | | | | | | the specific methods to be called Followup to #7836 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove IAppConfig::setValueRoeland Jago Douma2018-01-171-3/+3
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Remove IAppConfig::getValueRoeland Jago Douma2018-01-172-5/+4
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7836 from nextcloud/image-type-hintingMorris Jobke2018-01-171-4/+14
|\ | | | | Fix float/integer handling in image API
| * Fix float/integer handling in image APIMorris Jobke2018-01-171-4/+14
| | | | | | | | | | | | | | * IImage::crop/preciseResize now have type hinting for integers * found while testing strict typing for PHP 7+ Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Cleanup OC_User and OCP\UserMorris Jobke2018-01-163-75/+5
| | | | | | | | | | | | * mainly removes deprecated methods and old static code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Keep all shipped apps enabled because they should be okayJoas Schilling2018-01-161-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Remove deprecated \OCP\ConfigRoeland Jago Douma2018-01-131-2/+2
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7819 from nextcloud/fix-explode-in-legacy-helper.phpMorris Jobke2018-01-121-2/+2
|\ | | | | Fix explode() call in legacy/helper.php to have correct types
| * Fix explode() call in legacy/helper.php to have correct typesMorris Jobke2018-01-121-2/+2
| | | | | | | | | | | | Found while enabling strict_typing for PHP7+. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix strpos if needle is not foundMorris Jobke2018-01-121-1/+1
|/ | | | | | Found while testing strict_typing for PHP 7+. If `$script` does not contain a `/` then it should extract a string of the length 0. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Only return 1 typeRoeland Jago Douma2018-01-071-2/+3
| | | | | | | Throw proper exception if we can't get the mimetype for a preview. Catch it later on so we can just return a not found for the preview. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't lie about the preview mimetypeRoeland Jago Douma2018-01-071-0/+18
| | | | | | | | | | | | | | For legacy reasons we stored all the previews with a png extention. However we did not put png data in them all the time. This caused the preview endpoints to always report that a preview is a png file. Which was a lie. Since we abstract away from the storage etc in the previewmanager. There is no need anymore to store them as .png files and instead we can use the actual file extention. 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>
* Fix default parameter of OC_DB::executeAudited()Morris Jobke2017-12-181-2/+2
| | | | | | * fixes #7546 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7427 from nextcloud/fix-white-color-in-emailsMorris Jobke2017-12-111-0/+9
|\ | | | | Fix email buttons for white theme
| * Fix email buttons for white themeMorris Jobke2017-12-111-0/+9
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | 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