15 Commits

Author SHA1 Message Date
Arthur Kushman
bbc33710c1 >= PHP7.0 refactoring (#3343)
* Fix loosly comparison to strict + argument types and return types for >=7.0
* Change hard-coded strings to ::class, 
* Fix unit-tests failures - some relative to 7.0 phpunit env deployment
* Fix exception string + format return types
* Change string representation of new classes in traceLog to ::class
Credit to @arthurkushman
2018-01-12 00:23:20 -06:00
Luke Towers
de747f98b3 Deprecate the MediaLibrary & MediaLibraryItem classes in the CMS module 2017-09-27 22:12:45 -06:00
Luke Towers
3b7a8f3123 Make extension comparisons case insensitive
Make extension comparisons done in `getFileType()` case insensitive to support audio/visual file types being correctly recognized when the file being uploaded has an uppercase extension as is occasionally the case. I.e. `.JPG` is the same as `.jpg`, this just tells October to consider them the same.
2017-07-31 21:03:28 -06:00
Samuel Georges
cdb35f5070 UserPreferences -> UserPreference
(Models should be singular)
2016-05-27 07:35:32 +10:00
Samuel Georges
fd16f38b11 Implement file definitions (extensions + ignore files)
Block "unsafe" extensions from being uploaded to the Media manager
Fixes #1801
2016-02-29 18:12:26 +11:00
Daniel Müller
01c63d6e32 fixed some PHPDocs
removed my prior changes to the code behaviour

removed errorous PHPDocs

fixed some PHPDocs

removed my prior changes to the code behaviour

removed errorous PHPDocs
2015-12-12 11:34:27 +11:00
Samuel Georges
c30851d684 Remove dead ns ref 2015-09-30 20:54:00 +10:00
Samuel Georges
2ecf2db311 Remove dependency on IntlDateFormatter 2015-09-30 20:52:31 +10:00
Samuel Georges
8d11fe1257 Minor touch up to #1462 2015-09-26 08:51:13 +10:00
Dave Shoreman
faf682e30e Localise last modified date for mediaManager items
Updates the string version of the date to use PHP's IntlDateFormatter
which gives us translated dates in the appropriate format, based on
the user's locale set in backend preferences.

If ever there's a case where locale wasn't set or didn't match anything,
it would default to the system locale.
2015-09-24 19:11:32 +01:00
Samuel Georges
2cf1d707ad The API response for insert / insert+crop should be identical
This is because the 'onInsert' callback is used for both actions, yet yielded different results causing breakages
Fixes #1281
Also improved code readability in some places
2015-08-08 11:17:56 +10:00
Samuel Georges
e6bfa5b970 Add extra file types - Refs #1209 2015-06-20 10:28:16 +10:00
Samuel Georges
99146294aa Minor touch ups
Add danger style to popover
2015-06-06 16:49:30 +10:00
alekseybobkov
18e058ad59 Added the Media tab, minor update in .htaccess to allow temporary public directory to be accessible; implemented the basic UI components and navigation; implemented grid, list and tiles view modes; implemented drag-select interface; implemented Media Library cache refreshing; implemented thumbnail generating for local and remote media files; fixed memory leak in third-party Flot Resize library; minor update in the AJAX framework - AJAX request cancelling is not considered as an error anymore; added back-end UI components for creating panels. 2015-03-15 12:52:03 -07:00
alekseybobkov
1c273f28ba Implementing the MediaLibrary class, in progress 2015-02-24 22:02:03 -08:00