Commit Graph

1158 Commits

Author SHA1 Message Date
Samuel Georges fb2aa1730c Fixes security issue
Refs #3604
2018-06-22 22:57:38 +10:00
whsol 15cdf6e71f Make code parser data cache key configurable (#3373)
Credit to @whsol
2018-06-05 10:10:35 -06:00
QuangTrọngOnline 3ef571da3c Added Vietnamese translation (#3514)
Credit to @quangtrongonline.
2018-04-24 11:41:01 -06:00
Luke Towers 92e346296e Added cms.ajax.beforeRunHandler event 2018-04-19 10:26:50 -06:00
Luke Towers 4f7a08954d Updating links in composer files 2018-04-16 02:33:08 -06:00
Luke Towers df5b2afc06
Re-add Backend facade 2018-03-24 09:19:30 -06:00
Arthur Kushman c78b3ef786 Code formatting changes (#3363)
Code formatting improvements submitted by @arthurkushman.
2018-03-22 10:55:13 -06:00
Mohamed Ali Behiry e3635b80e7 Added partial Arabic translation (#3296)
Credit to @mabehiry
2018-03-20 13:20:09 -06:00
Miro Rauhala 610452078d Update Finnish translations (#3460)
Credit to @mirorauhala
2018-03-19 15:36:53 -06:00
CaptainTF 7a6f1d3c85 Improved Simplified Chinese (zh-CN) translation (#3447)
Credit to @CaptainTF
2018-03-12 23:26:34 -06:00
interworks-morr 0206a6811f Improve cache reliability (#3421)
Reported and fixed by @interworks-morr: 
"Occasionally with certain IIS setups, the file will contain an out-of-date class name. This patch will verify the class name from the file before returning, and clear the cache if invalid."
2018-03-02 20:00:05 -06:00
Alexander Shapoval 7552464779 Updated Russian Translations (#3414)
Credit to @PopcornPHP
2018-02-25 21:25:12 -06:00
Sajjad Servatjoo 708b1e3a75 Update Persian Language (#3396)
Credit to @sajjad-ser
2018-02-13 10:55:06 -06:00
Matteo 678916854e Add config to enable Twig strict_variables (#3370)
Adds the cms.enableTwigStrictVariables config option to enable strict_variables in Twig for debugging purposes. See https://twig.symfony.com/doc/2.x/api.html#environment-options. Credit to @matteotrubini
2018-01-26 10:59:45 -06:00
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
viamage 7ffb79a5fd Fix typo (#3326)
Fixed typo, added CmsCompoundObject::getComponentProperties method test. Credit to @viamage
2017-12-27 13:31:34 -06:00
Miro Rauhala d54c3b18e9 Initialize missing variable (#3318)
Fixes #3317. Credit to @mirorauhala
2017-12-21 16:06:56 -06:00
Miro Rauhala 1d3828c36e Bring Finnish language up to date (#3316)
Credit to @mirorauhala
2017-12-21 11:16:01 -06:00
Samuel Georges 9f1fe611e4 File cleaned up as part of review 2017-11-25 21:17:07 +11:00
Samuel Georges 0a428423af Twig partial() function should not throw exception
This allows checking if a partial exists
2017-11-19 14:58:47 +11:00
Luke Towers f850b5d7ca Removes unnecessary blocking head placeholders. Refs: https://github.com/rainlab/pages-plugin/issues/239 2017-11-15 20:26:48 -06:00
Miro Rauhala da295a83df Add Finnish language (#3237)
Credit to @mirorauhala
2017-11-11 18:36:55 -06:00
Samuel Georges e6de2a5521 Fixes exception on empty token 2017-11-02 19:53:20 +11:00
Samuel Georges 4a6e0e1e0e Implement CSRF token by default
Implement CSRF protection on CMS for postback handling
2017-10-30 09:00:17 +11:00
Samuel Georges 9309d826d0 Update zh-tw MM lang 2017-10-15 01:31:04 +11:00
Samuel Georges 4790f8b7a7 Update zh-cn MM lang 2017-10-15 01:29:13 +11:00
Samuel Georges 75d16dab26 Update uk MM lang 2017-10-15 01:27:28 +11:00
Samuel Georges 79b5094aed Update tr MM lang 2017-10-15 01:25:09 +11:00
Samuel Georges 974bbf1303 Update sv MM lang 2017-10-15 01:21:15 +11:00
Samuel Georges a7b6250e74 Update ro MM lang 2017-10-15 01:03:26 +11:00
Samuel Georges c9851ca158 Update pt-pt MM lang 2017-10-15 01:01:00 +11:00
Samuel Georges cc295cc40b Update pt-br MM lang 2017-10-15 00:58:13 +11:00
Samuel Georges 93a3b4e1e7 Update pl MM lang 2017-10-15 00:43:39 +11:00
Samuel Georges 3c27eb4728 Update nl MM lang 2017-10-15 00:41:50 +11:00
Samuel Georges 8262897010 Update nb-no MM lang 2017-10-15 00:37:53 +11:00
Samuel Georges e28c287d08 Update lv MM lang 2017-10-15 00:29:08 +11:00
Samuel Georges 56f4d5972d Update lt MM lang 2017-10-15 00:04:24 +11:00
Samuel Georges 88fa577946 Update kr MM lang 2017-10-15 00:00:01 +11:00
Samuel Georges dd089e4bed Update it MM lang 2017-10-14 23:52:44 +11:00
Samuel Georges aa1766ad12 Update hu MM lang 2017-10-14 23:34:05 +11:00
Samuel Georges 74611f7220 Update fr MM lang 2017-10-14 23:31:27 +11:00
Samuel Georges 476645bafd Update fa MM lang 2017-10-14 23:29:52 +11:00
Samuel Georges 95dd254705 Update et MM lang 2017-10-14 23:25:44 +11:00
Samuel Georges 1eb99b8165 Update es MM lang 2017-10-14 23:14:20 +11:00
Samuel Georges 3aa9d91cf8 Update en MM lang 2017-10-14 23:05:08 +11:00
Samuel Georges 1826b19197 Update el MM lang 2017-10-14 23:02:22 +11:00
Samuel Georges 2593252909 Update de MM lang 2017-10-14 22:38:25 +11:00
Samuel Georges 9d4b86a67a Update da MM lang 2017-10-14 22:35:38 +11:00
Samuel Georges b8ad025968 Update cs MM lang 2017-10-14 22:28:20 +11:00
Samuel Georges d30aa578b4 Update bg MM lang 2017-10-14 22:24:36 +11:00
Samuel Georges 56b8d38bbf Update be MM lang 2017-10-14 22:20:56 +11:00
Luke Towers 4203e65549 Deprecated Cms\Controllers\Media in favour of the backend one. Fixed other references to moved pieces of the Media Manager. Finally a proper fix for https://github.com/octobercms/october/pull/2604 2017-10-08 23:12:04 -06:00
Luke Towers 7830f89fa9 Fixing typos 2017-10-08 12:52:03 -06:00
Luke Towers 7fd81c4c2a Initial work on moving media controller to the backend 2017-09-27 22:40:39 -06:00
Luke Towers 30d4436172 Moved the media icon to the backend instead of the cms 2017-09-27 22:37:11 -06:00
Luke Towers 6bcaeb2d65 Moving media manager references from the CMS service provider to the System service provider 2017-09-27 22:34:32 -06:00
Luke Towers d14f1fec0f Moved MediaFinder formwidget from the CMS module to the System module 2017-09-27 22:30:53 -06:00
Luke Towers c2f204008b Moved the MediaManager widget from the CMS module to the System module 2017-09-27 22:23:58 -06:00
Luke Towers 08f9cd8448 Moved the |media twig filter from the CMS module to the System module 2017-09-27 22:15:01 -06:00
Luke Towers de747f98b3 Deprecate the MediaLibrary & MediaLibraryItem classes in the CMS module 2017-09-27 22:12:45 -06:00
Szabó Gergő fa2c536a53 Hungarian translate for Mail branding (#3115)
and minor corrections
2017-09-15 09:41:48 -06:00
Luke Towers 8a8013e52e Fixes #3081. Resets module dependencies from dev to stable. Refs 081a32c928 2017-09-04 12:40:55 -06:00
Luke Towers 5185ca075b Add the cms.object.listInTheme event (#3076)
Inspired by #3075. Provides a cms.object.listInTheme event to modify the results returned by that method.
2017-09-02 19:51:56 -06:00
Samuel Georges 4074ad8cc9 Laravel 5.5 released 2017-08-31 20:57:00 +10:00
Tschallacka b152663ff5 Attribute values for < and > and '' should be written als &lt; &gt; and &quot;(when enclosed with double quotes for attribute delimters) (#3043) 2017-08-29 10:29:48 -06:00
Szabó Gergő cfd3d54316 Update the Hungarian translation (#3046)
Compatible with October build 420
2017-08-18 08:26:51 -06:00
Sang Min Oh 969eaccf8b korean language support for backend (#3023)
Credit to @everydayparty
2017-08-06 12:36:34 -06:00
Luke Towers 9745b3ba75 Compiled assets 2017-08-05 18:11:40 -06:00
Luke Towers 0b7170ac26 Add support for sorting direction to the MediaManager (#3007)
* Remove redundant returns

`$this->putSession()` in `Backend\Traits\SessionMaker` doesn't return anything, and the return values of these methods are not used; so returning the value of `putSession()` in these methods is redundant.

* Add support for sort direction to MediaLibrary

Adds support for switching the direction that item lists get sorted by the media library. This necessitates the changing of the default direction of Last Modified and Size to Ascending, previously their sorting direction was Descending while Title was sorted in Ascending order. This shouldn't change anything as the user still has the power to sort by either direction. Fully backwards compatible with any calls to `sortItemList`.

* Support sorting direction in the MediaManager widget

Adds further support for specifying a sorting direction to the MediaManager widget itself

* Display sorting direction options

* Improving styles for sorting direction

* Send sorting information to the MediaManager

* Add translations for sorting feature

* Removing strange ghost whitespace
2017-08-05 12:45:01 -06:00
Jan Vince 881edd48de Update Czech translation (#3003)
Credit to @jan-vince, reviewed by @chesio
2017-08-01 07:28:09 -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 96d0535d09 Add generic onAjax handler that does nothing 2017-07-29 22:55:58 +10:00
Alexander Shapoval 26ee634ffb Updated Ukrainian and Russian translations (#2988)
* Small changes in Ukrainian and Russian languages
2017-07-28 08:53:40 +10:00
Samuel Georges 9cadea9b19 Code doc improvements 2017-07-27 17:35:14 +10:00
Samuel Georges 5555b98799 Fixes deprecated Twig API
Refs https://github.com/kriswallsmith/assetic/pull/819
2017-07-26 22:16:52 +10:00
Samuel Georges ef191d64e4 l55upgrade -> develop 2017-07-26 21:03:52 +10:00
Samuel Georges 9bb639b19f Merge branch 'l55upgrade' into develop 2017-07-26 20:59:58 +10:00
Samuel Georges 18b9253bcb Change to mail partial syntax 2017-07-26 17:48:00 +10:00
Samuel Georges 5078578a04 Rollback 205f02b44a
This keeps it as generic copypasta
With or without this, an unauthorized page is shown if the user has no permission
2017-07-22 09:46:55 +10:00
Luke Towers 205f02b44a Improve unauthorized redirection trigger case 2017-07-21 14:47:18 -06:00
Luke Towers 151ed057e8 Improve support for #2985
Improves support for editing theme options by enabling the currently active theme's customizations to be saved without a dirname in the URL.
2017-07-21 14:45:51 -06:00
Alwin Drenth c1cd76d60a Update Dutch language files (#2987) 2017-07-21 09:27:27 -06:00
Samuel Georges 7a7a1186d6 Clean up imports 2017-07-21 15:42:49 +10:00
Samuel Georges 161a1fffbb Wording change 2017-07-21 15:40:02 +10:00
Samuel Georges 3f40a6dbaf Refactor solution from #2985 2017-07-21 15:38:53 +10:00
Luke Towers 647a656f67 Add more granular permissions for editing themes (#2985)
* Add more granular permissions for editing themes
* Fix component token parser exception message
2017-07-21 14:29:30 +10:00
Samuel Georges 4fd1ca824f Introduce concept of system roles
These are roles defined by a special API code, once a system role code is detected, the role becomes locked and its permissions are sourced from the AuthManager. All permissions are granted to system roles by default, unless otherwise specified. This should make it easier to create client accounts as "Publishers", hiding developer tools like the CMS and Builder plugins by default.
2017-07-13 19:29:50 +10:00
Samuel Georges 1db67af8e8 Merge remote-tracking branch 'remotes/origin/develop' into l55upgrade
Conflicts:
	modules/system/lang/en/lang.php
2017-07-11 10:48:54 +10:00
Benjamin 89d0d29b69 Added SASS support to Resources component (#2961) 2017-07-10 17:29:11 -06:00
Max Schmitt aeba740243 Add getStatusCode() in Cms\Classes\Controller (#2959)
Related: #2953. Provide a method to access the current statusCode of a CMS controller.
2017-07-08 08:53:08 -06:00
Samuel Georges d1c160f9dc Check both instances to fix #1854
It appears there is no way around this. All directories should be lower case in October, prior to this, October wanted uppercase characters. Make up your mind guy, come on! ;-)
2017-07-01 12:26:55 +10:00
Samuel Georges 87f8f8feb1 Fixes inconsistency in component partial folder names
This is a breaking change that will require further attention - refs #1854

Eg: myComponent, the default component partial would use lower case folders
- /plugins/acme/test/components/mycomponent/default.htm

The theme component partial override would use case sensitive folders
- /themes/foobar/partials/myComponent/default.htm

This is fixed as
- /themes/foobar/partials/mycomponent/default.htm

Minor code fix to ModelBehavior class
2017-06-27 05:34:13 +10:00
Alexander Shapoval e6d79057c6 Translation into Ukrainian has been added. Added translations into Russian (#2931)
* Added Ukrainian language. Credit to @PopcornPHP for the translation.
2017-06-17 15:22:50 -06:00
Samuel Georges a2a7eec4f5 Rename methods in CollapsableWidget
The methods were far too generic. When a trait or behavior is used, it's usually a good include to include the name of the trait in the methods and properties it provides. This reduces the chance of a conflict with the implementing class.
2017-06-10 15:42:24 +10:00
Samuel Georges f020479b91 Move session logic to SessionMaker
This allows controller behaviors to access session utils
2017-06-10 04:58:29 +10:00
Priit Perna eff3f2e905 Backend translation for estonian (#2911)
* Added language files for Estonian (et). Thanks to @priitperna!
2017-06-07 11:07:34 -06:00
Samuel Georges f7d0d394f5 Merge pull request #2881 from gergo85/patch-3
Typo
2017-06-06 20:21:59 +10:00
Samuel Georges bda98e7353 Selectable box and fancy breadcrumb 2017-06-05 17:35:15 +10:00
Samuel Georges 3b56787a2b Use tabs cssClass definition instead of JS 2017-06-05 17:33:37 +10:00
Samuel Georges f672a3cf19 String to ::class 2017-06-03 10:31:24 +10:00
Samuel Georges e2781c5fdf URL -> Url 2017-06-02 23:34:50 +10:00
Samuel Georges 3be6dafa6b Fixes int folder name showing as 0
Fixes #2902
Code dusting
2017-06-02 20:16:26 +10:00
Samuel Georges 08f2e05b67 Download URL -> URL 2017-06-02 17:39:51 +10:00
Samuel Georges 01b11b73d8 Pretty useful trait, discoverable in API docs 2017-05-30 19:56:36 +10:00
Samuel Georges f0df1f458b Merge branch 'develop' into l55upgrade
Conflicts:
	modules/system/assets/ui/storm.css
2017-05-27 22:24:57 +10:00
Samuel Georges 63f1f0ac13 Merge pull request #2894 from gergo85/develop
Add imageWidth and imageHeight parameters
2017-05-27 22:10:48 +10:00
Szabó Gergő 92a5b9ab22 Add imageWidth and imageHeight parameters 2017-05-25 15:30:22 +02:00
Samuel Georges 2cbe849ee7 Style fixes 2017-05-22 20:01:09 +10:00
Samuel Georges 00ddd8e2b4 string -> ::class + docs 2017-05-20 20:01:19 +10:00
Samuel Georges cefa19af7d Backend UI improvements 2017-05-20 20:00:24 +10:00
Szabó Gergő 04e1f6e62e Typo
It is low priority changes. Yesterday I found them too, when I fixed the array index name issue.
2017-05-20 11:54:55 +02:00
Samuel Georges aa393dc54b Backend style improvements
This should make Windows PCs look a little nicer, albeit inconsistent with others (Sergoe UI is unique). If it's good enough for GitHub, then it's good enough for October.
All text shadows have been stripped, along with some box shading. They were barely noticeable and should speed up the UI.
2017-05-20 17:37:58 +10:00
Samuel Georges bab7976331 Merge branch 'develop' into l55upgrade 2017-05-20 09:08:09 +10:00
Szabó Gergő c597563145 Fixed spaces 2017-05-19 11:29:19 +02:00
Samuel Georges 081a32c928 Change versions for testing 2017-05-19 14:13:23 +10:00
Samuel Georges 4d1bec860d thumbnailDirectory -> thumbFolder 2017-05-16 08:47:15 +10:00
Samuel Georges d9cf7381dc Implement helper method for checking ignored path
Refs #2858
2017-05-16 07:38:38 +10:00
Samuel Georges 2a0a91486c Logic error - fixes #2654 2017-05-16 07:24:07 +10:00
Samuel Georges 5ca3c3fa35 Merge pull request #2859 from TimFoerster/patch-2
Allows 0 and ‘0’ values as default values for theme settings
2017-05-15 20:31:59 +10:00
Samuel Georges f05f4c21cf Merge pull request #2858 from TimFoerster/patch-1
Filter layout by ignored file names
2017-05-15 20:29:53 +10:00
Luke Towers a5b081b74b Make the MediaManager messages more generic 2017-05-15 00:16:28 -06:00
Luke Towers 21d4f683c3 Support custom thumbnail directory
This enables support for edge cases that require custom thumbnail directories (such as requiring authentication to view generated thumbnails).
2017-05-14 22:41:31 -06:00
Luke Towers 7a820f3c43 Remove reference to hardcoded media path
Replaces the reference to a hardcoded `/media` path when generating a local temp file path to utilize the folder name as set in `cms.storage.media.folder`.
2017-05-14 22:28:08 -06:00
Luke Towers 0f04afbea4 Recompile mediamanager assets to include the fix 2017-05-14 19:34:50 -06:00
Luke Towers 84ee4f2679 Fix for #2765
Actual changes are in `MediaManager.prototype.deleteConfirmation`, apologies for the trailing whitespace removals, my editor auto does that and I didn't feel like removing it since there shouldn't really be trailing whitespace anyways.

Fixes #2675 (and probably other potential oopsies) by skipping over the "return to parent" item in the deletion handling method. The "return to parent" item contains a reference to the folder above the current folder, which could potentially cause the entire media folder to be deleted; and would certainly remove a lot more than actually intended.
2017-05-14 19:32:57 -06:00
Samuel Georges 453e48924e Apply web middleware group for the good cookies 2017-05-13 22:18:13 +10:00
Samuel Georges 6b74efa4b0 Improves the DebugExtension
It now uses the HtmlDumper from Illuminate to elaborate on each variable when clicked
getName() no longer needed on Twig extensions
2017-05-13 10:20:18 +10:00
Samuel Georges 2b5709adb9 Bump Twig to v2, refit code 2017-05-13 09:34:20 +10:00
Samuel Georges 59d1e7736c Bump min version to PHP 7
Restore tinker command
2017-05-13 09:04:22 +10:00
Samuel Georges 5ea79489af pluck -> value
This is an odd one from Laravel, pluck is now value and lists is now pluck. We'll need a release note about this one.
2017-05-12 07:19:06 +10:00
Tim Förster 25daf546fa Allows 0 and ‘0’ values as default values for theme settings - Refs #2388 2017-05-05 11:20:10 +02:00
TimFoerster 5eb278e883 Filter layout by ignored file names
The Layouts get filtered by the filesystem definition of ignored files.
#814
2017-05-04 14:53:19 +02:00
Samuel Georges 52367d0b06 Merge pull request #2849 from gergo85/develop
Improve translations
2017-05-03 20:08:57 +10:00
Samuel Georges 349851dd11 Partials, pages and content now support drag'n'drop 2017-04-28 23:37:50 +10:00
Szabó Gergő a57e0e3080 Replace the str_replace function 2017-04-28 14:20:16 +02:00
Samuel Georges 1723070444 Merge pull request #2801 from amdad/patch-1
Prevent preloading files in advance
2017-04-28 19:30:25 +10:00
Szabó Gergő 58dfaf395e Improve translations 2017-04-28 09:01:21 +02:00
Maria Vilaró 3a2b9b1973 Improvements to Spanish translation (#2843) 2017-04-26 10:48:26 -06:00
Quezler cc17b679f1 Code dusting (#2826)
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Szabó Gergő 130d502f41 Update the Hungarian translation 2017-04-19 10:35:58 +02:00
Szabó Gergő 83b8f48b6f Translate the "by" word 2017-04-19 10:35:22 +02:00
Samuel Georges 27062ddfa0 Fixes folder creation and rename in asset list 2017-04-14 08:07:11 +10:00
Samuel Georges 9df40c07b8 Move extension validation to files only 2017-04-13 09:37:49 +10:00
Luke Towers a64260c2ff Merge pull request #2808 from jlongo/master
Added support/files for pt_pt language
2017-04-11 01:58:52 -06:00
José Longo 228bdb3f35 add cms dir/file for pt-pt language 2017-04-10 15:06:00 +01:00
Samuel Georges 433cf1d504 Additional security fixes 2017-04-10 16:02:05 +10:00
Samuel Georges 24c8b4368a Various security and UI fixes
The Media Manager now uses a white list approach to blocking files, we have been advised that the blacklist approach is too fragile and we agree.
Asset List and Media Manager now use $.oc.alert when displaying errors
2017-04-09 08:00:56 +10:00
amdad 5aea608e77 Prevent preloading files in advance
Files should be loaded on user click. Huge amount of data is loaded on page load, especially if many audio instances are on page. This is temporary solution. Ultimately widget should support params to match html5 audio/video tags.
2017-04-07 10:27:36 +02:00
Samuel Georges 9f809becca Fixes a bug when saving a modified template
When template has been modified outside of the CMS (mtime mismatch).
Fixes #2690
2017-04-05 22:07:15 +10:00
Alwin Drenth dbd9af3ba0 Update Dutch language for build v409 2017-04-01 15:43:14 +02:00