147 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
f47c8f3525 MDL-64300 upgrade: add 3.6.0 separation line to all upgrade scripts 2018-12-02 18:36:40 +01:00
Eloy Lafuente (stronk7)
085353b315 MDL-64282 versions: bump all versions and requires near release
version = 2018120300 release version
requires= 2018112800 current rc2 (week7roll1) version
2018-11-29 18:24:08 +01:00
Andrew Nicols
8cba8d1a58 MDL-64049 core: Cache prefs for current user
We were already caching these preferences when a user object is provided
to get_user_preferences, or when $USER is provided.

This changee swaps get_user_preferences to use the global USER object
when the USER->id matches the userid supplied to the function.
2018-11-19 11:23:59 +08:00
Michael Hawkins
42c742eb2e MDL-63538 repository_flickr: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-22 12:48:38 +02:00
Eloy Lafuente (stronk7)
00977e984e MDL-62478 upgrade: add 3.5.0 separation line to all upgrade scripts 2018-05-28 13:15:48 +02:00
Eloy Lafuente (stronk7)
57ea6753d3 MDL-62361 versions: bump all versions and requires near release
version = 2018051400 release version
requires= 2018050800 current beta+ (week4roll1) version
2018-05-09 02:46:30 +02:00
Zig Tan
202ec23a1f MDL-61568 repository_flickr: Fix oauth secret export 2018-04-19 14:33:26 +08:00
Zig Tan
35bf4711bb MDL-61568 repository_flickr: Implement privacy providers 2018-04-18 13:40:17 +08:00
Eloy Lafuente (stronk7)
6499085f36 MDL-60784 upgrade: add 3.4.0 separation line to all upgrade scripts 2017-11-12 18:43:30 +01:00
Eloy Lafuente (stronk7)
ba854606e6 MDL-60764 versions: bump all versions and requires near release
version = 2017111300 release version
requires= 2017110800 current rc2 version
2017-11-10 02:52:53 +01:00
David Mudrák
34db9e9342 MDL-59645 repository_flickr: Drop legacy auth tokens and nsids
The values stored in these user preferences were valid for the old
flickr auth mechanism and are not usable any more. The new oauth1 based
version needs to store both the token (in the flickr_access_token
preference) and the token secret (flickr_access_token_secret). The new
version does not need to store the user's nsid.

The cryptic names of these legacy settings are a result of how dealing
with user preferences was originally implemented.
2017-09-19 14:44:41 +02:00
David Mudrák
d841bbe90d MDL-59645 repository_flickr: Make the Flickr repository work again
The patch makes the Flickr repository use the new oauth1 based client.
Beside that, other improvements include:

* Does not attempt to guess the photo URL any more. Instead uses
  url_sq and url_o extras of the flickr.photos.search call.
* The photos.search does not return the information about the photo size
  so we set it to null (previously was returned as 'unknown' which made
  it be displayed as zero).
* Does not perform additional API request to obtain the manage URL, uses
  https://www.flickr.com/photos/organize instead.
2017-09-19 14:44:41 +02:00
Eloy Lafuente (stronk7)
d989ee1e03 MDL-58853 versions: bump all versions and requires near release
version = 2017051500 release version
requires= 2017050500 current rc1 version
2017-05-09 02:58:28 +02:00
Eloy Lafuente (stronk7)
04649747a4 MDL-57197 versions: bump all versions and requires near release
version = 2016120500 release version
requires= 2016112900 current rc4 version
2016-11-29 22:57:05 +01:00
Eloy Lafuente (stronk7)
1abca11e0a MDL-54638 versions: bump all versions and requires near release
version = 2016052300 release version
requires= 2016051900 current rc1 version
2016-05-19 02:16:15 +02:00
KeenRivals
26c19b02d5 MDL-50175 graphics: Optimized PNG images with optipng
Used options: -o7 -strip all and advdef -z4 -i50.

(With ./lib excluded)
2016-02-25 11:56:37 +00:00
Eloy Lafuente (stronk7)
2e144835bb MDL-52059 versions: bump all versions and requires near release
version = planned 2015111600 release version
requires= current 2015111000 rc3 version
2015-11-10 12:33:52 +01:00
Eloy Lafuente (stronk7)
26ea380d24 MDL-50102 versions: bump all versions and requires near release
version = planned 2015051100 release version
requires= current 2015050500 rc1 version

Note: On purpose, the course format social wrong version (2015102100)
has been kept unmodified. Looking forward a solution right now.
2015-05-05 17:43:19 +02:00
Eloy Lafuente (stronk7)
de881693f7 MDL-48021 bump: Bump all versions to planned release
This bumps all versions to planned 2.8 release
(2014111000) version and all the dependencies to
current 2.8rc1 (2014110400)
2014-11-04 17:52:35 +01:00
Tim Hunt
5bcfd504df MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
Eloy Lafuente (stronk7)
538bf99ece MDL-45486 Bump all versions to planned release
This bumps all versions to planned 2.7 release
(2014051200) version and all the dependencies to
current 2.7rc2 (2014050800)
2014-05-09 02:12:28 +02:00
Eloy Lafuente (stronk7)
f39c82ebed MDL-42701 Bump all versions near 2.6 release 2013-11-05 02:36:00 +01:00
Frederic Massart
9b5e61ac1e MDL-39477 repository: Introducing data generators for repositories 2013-05-28 10:44:43 +08:00
Eloy Lafuente (stronk7)
cedb0aab5a MDL-39434 Bump all versions near 2.5 release 2013-05-01 18:03:29 +02:00
Dan Poltawski
5077e85817 MDL-38852 repository_flickr: fix missing setType calls 2013-04-03 11:14:00 +08:00
Eloy Lafuente (stronk7)
663dbbc2e6 MDL-36933 Bump everything to 2012112900
(versions, requires and dependencies)
2012-11-30 03:30:09 +01:00
Frederic Massart
b2245b7e8a MDL-34633 Repository: Flickr supports small images 2012-09-03 14:21:53 +08:00
Marina Glancy
72a5655566 MDL-34290 repository API: add timeout to get_file and throw exception
- get_file should have a request timeout and throw an exception with the details (i.e. timeout reached) if download can
not be completed
- corrected phpdocs
2012-08-29 11:56:14 +08:00
Dan Poltawski
098c02be10 Merge branch 'MDL-34077-master' of git://github.com/FMCorz/moodle 2012-07-09 13:37:20 +08:00
Frederic Massart
545ca38628 MDL-34077 Repositories: Flickr and Picasa can have custom names 2012-06-28 12:11:18 +08:00
Jonathan Harker
def4a8f5b7 MDL-27125 better manage file handles when downloading multiple files.
Based on Dongsheng Cai's branch: s11_MDL-27125_curl_file_handler_master
2012-06-20 16:46:29 +12:00
Eloy Lafuente (stronk7)
c5e783e512 MDL-33794 version.php: Bump all versions, requires and dependencies to 2012061700 2012-06-18 02:37:00 +02:00
Dongsheng Cai
d6453211b6 MDL-33513: Make files->source field consistent 2012-06-15 14:51:07 +08:00
Dan Poltawski
414ce30812 Revert MDL-33513
This reverts commit b2cf2b807f7a7c8d1a02ebb52038c61cc63a1494.
This reverts commit 24b96f01702571989fa77a05c5cd11b9fedc2745.
This reverts commit 39c60294a6a027ae56f4b9eda159bb589b60c0c0.
This reverts commit 8a288971e25eaaa4c8cbd67e450cee0e12435d4e.
2012-06-14 13:57:45 +08:00
Dan Poltawski
b2cf2b807f MDL-33513 repositories - fix misleading phpdocs 2012-06-14 10:55:30 +08:00
Dongsheng Cai
8a288971e2 MDL-33513: Make files->source field consistent 2012-06-10 17:47:00 +10:00
Dongsheng Cai
6723372514 MDL-28666 Extends repository to support references
1. Allow repository to create references to external contents
2. Extends files API to handle file references
3. Generic file caching
4. Backup/restore file references
5. Download external contents if repository uninstalled
6. Allow filepicker to display iframe
7. PHPUnit test suits
2012-05-21 11:57:51 +08:00
Marina Glancy
6819c4287d MDL-32417: Fixed pagination bug in Flickr search results, also return thumbnail sizes 2012-04-23 09:33:58 +08:00
Petr Skoda
68a7c9a696 MDL-32095 some more E_STRICT fixes 2012-03-26 11:47:15 +02:00
Petr Skoda
e67bc2a410 MDL-30964 fix phpdocs in access.php files in all plugins 2012-02-27 07:23:10 +01:00
Petr Skoda
0790df351f MDL-30007 standardise repository version files 2011-11-29 22:06:27 +01:00
Petr Skoda
431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
Petr Skoda
6bdfef5da9 MDL-24321 switching to standard stdClass() 2010-09-21 08:54:01 +00:00
Petr Skoda
d078f6d38e standardized PHPDocs package info 2010-09-06 11:29:21 +00:00
dongsheng
e3b9156c46 REPOSITORY MDL-23533, fixed incorrect archetype 2010-07-28 08:56:49 +00:00
Dongsheng Cai
a5adfa2658 MDL-23072, properly localised repository instance name 2010-07-27 09:03:54 +00:00
Dongsheng Cai
e35194bec4 MDL-22982
1. rename repository.class to lib.php
2. fixed repository_callback.php
3. repository_ajax use moodle default exception handler
4. improve file_get_user_used_space performance
2010-07-05 07:27:49 +00:00
Petr Skoda
14770efc70 MDL-22984 using standard plugin description string for repositories
AMOS BEGIN
 MOV [repositorydesc,repository_alfresco],[pluginname_help,repository_alfresco]
 MOV [repositorydesc,repository_boxnet],[pluginname_help,repository_boxnet]
 MOV [repositorydesc,repository_dropbox],[pluginname_help,repository_dropbox]
 MOV [repositorydesc,repository_filesystem],[pluginname_help,repository_filesystem]
 MOV [repositorydesc,repository_flickr],[pluginname_help,repository_flickr]
 MOV [repositorydesc,repository_flickr_public],[pluginname_help,repository_flickr_public]
 MOV [repositorydesc,repository_googledocs],[pluginname_help,repository_googledocs]
 MOV [repositorydesc,repository_local],[pluginname_help,repository_local]
 MOV [repositorydesc,repository_merlot],[pluginname_help,repository_merlot]
 MOV [repositorydesc,repository_picasa],[pluginname_help,repository_picasa]
 MOV [repositorydesc,repository_recent],[pluginname_help,repository_recent]
 MOV [repositorydesc,repository_s3],[pluginname_help,repository_s3]
 MOV [repositorydesc,repository_upload],[pluginname_help,repository_upload]
 MOV [repositorydesc,repository_url],[pluginname_help,repository_url]
 MOV [repositorydesc,repository_user],[pluginname_help,repository_user]
 MOV [repositorydesc,repository_webdav],[pluginname_help,repository_webdav]
 MOV [repositorydesc,repository_wikimedia],[pluginname_help,repository_wikimedia]
 MOV [repositorydesc,repository_youtube],[pluginname_help,repository_youtube]
AMOS END
2010-07-04 12:56:19 +00:00
Petr Skoda
614d18d26c MDL-22984 using standard plugin name string for repositories
AMOS BEGIN
 MOV [repositoryname,repository_alfresco],[pluginname,repository_alfresco]
 MOV [repositoryname,repository_boxnet],[pluginname,repository_boxnet]
 MOV [repositoryname,repository_dropbox],[pluginname,repository_dropbox]
 MOV [repositoryname,repository_filesystem],[pluginname,repository_filesystem]
 MOV [repositoryname,repository_flickr],[pluginname,repository_flickr]
 MOV [repositoryname,repository_flickr_public],[pluginname,repository_flickr_public]
 MOV [repositoryname,repository_googledocs],[pluginname,repository_googledocs]
 MOV [repositoryname,repository_local],[pluginname,repository_local]
 MOV [repositoryname,repository_merlot],[pluginname,repository_merlot]
 MOV [repositoryname,repository_picasa],[pluginname,repository_picasa]
 MOV [repositoryname,repository_recent],[pluginname,repository_recent]
 MOV [repositoryname,repository_s3],[pluginname,repository_s3]
 MOV [repositoryname,repository_upload],[pluginname,repository_upload]
 MOV [repositoryname,repository_url],[pluginname,repository_url]
 MOV [repositoryname,repository_user],[pluginname,repository_user]
 MOV [repositoryname,repository_webdav],[pluginname,repository_webdav]
 MOV [repositoryname,repository_wikimedia],[pluginname,repository_wikimedia]
 MOV [repositoryname,repository_youtube],[pluginname,repository_youtube]
AMOS END
2010-07-04 12:52:10 +00:00
Petr Skoda
a4cdd6d2c8 MDL-23068 removing obsolete $result and removing empty upgrade files that would be probably never used at all + minor cleanup/fixing 2010-07-04 10:27:56 +00:00