Commit Graph

3958 Commits

Author SHA1 Message Date
Alexander Shapoval 9da0af4533 Add ability to specify one CSS class to apply to all tab panels (#3761)
Credit to @ebashu-on-holidays
2018-09-16 10:51:00 -06:00
chrisbethelepb 0ffdbc5efd Relax restrictions on MediaLibrary filenames (#3778)
Fixes #3741. Credit to @chrisbethelepb
2018-09-12 11:37:21 -06:00
Tobias Kündig cf9d487b30 Removed unneccessary css rule (#3777)
The removed css rule makes filelist entries unreadable on touchscreen clients
that also have default pointer input support. The entries have a blue background
with white text when hovered. By setting the background to transparent the
text is no longer readable. Credit to @tobias-kuendig
2018-09-12 11:03:58 -06:00
Alexander Shapoval 709790a05d Added method getLayout() to Controller (#3765)
Credit to @ebashu-on-holidays
2018-09-09 18:55:10 -06:00
Samuel Georges 4ec3b525e0 Fixes event implementation
The array_merge approach will only shallow merge the arrays preventing a second event from contributing form fields properly. Passing by reference is the logical thing to do here.
2018-09-06 17:08:05 +10:00
Szabó Gergő 8f82a89147 Apply custom secondary color to Balloon Selector (#3748)
Credit to @gergo85
2018-09-04 11:57:28 -06:00
Szabó Gergő 82b45268c7 Change the lang code in the html templates (#3754)
Credit to @gergo85
2018-09-04 11:54:26 -06:00
Szabó Gergő 69988837d5 Fixed readonly on switch and checkbox field types (#3750)
Credit to @gergo85
2018-09-03 14:36:22 -06:00
vosco88 55575e316b Update reportcontainer.less (#3737)
Fix minor padding issue in Firefox. Fixes #3731. Credit to @vosco88
2018-08-31 00:36:47 -06:00
Samuel Georges 7a8867f00b Improve Event log formatting for emails
If an email is seen (Message-ID:) then convert newlines to <br> unless within <html> tags. Also place the contents inside an iframe so the CSS rules don't leech out.
Fixes #3032
2018-08-31 11:09:20 +10:00
Artem Korsunov 303dcab353 Update Russian translation (#3735)
Credit to @Konfuze
2018-08-30 13:11:11 -06:00
Samuel Georges 38cea8d037 Annotate class methods 2018-08-30 13:50:15 +10:00
Samuel Georges e32de7b753 Annotate class methods 2018-08-30 13:37:39 +10:00
Samuel Georges 5cc327c45c
Merge pull request #3690 from nathan-van-der-werf/feature/cleanup
Code cleanups
2018-08-30 13:12:42 +10:00
Samuel Georges 6099096e5d Increase visibility of close button
Fixes #3723
2018-08-30 12:40:45 +10:00
Samuel Georges f068b13851 Instruct Rocket Loader to ignore core JS libs
These appear to break for users on CloudFlare possibly due to double minification
Fixes #3602
2018-08-30 12:30:27 +10:00
Nathan van der Werf 743252c3ff
Merge branch 'develop' into feature/cleanup
# Conflicts:
#	modules/backend/widgets/Form.php
2018-08-29 19:18:01 +02:00
Samuel Georges 2d77565e6c Peer review 52d1388e4e
This uses a simpler approach and leverages improvements to the validation trait
See 574031d3ee
Refs #2489
2018-08-29 12:19:33 +10:00
Luke Towers 52d1388e4e Automatically use field labels as custom attribute names for a nicer validation message
Fixes #2489
2018-08-26 13:39:49 -06:00
Luke Towers fcec026dff Add support for checking if nested form fields are required for visual indicator 2018-08-26 12:29:37 -06:00
Nathan van der Werf 8fd16d4db6
Merge branch 'develop' into feature/cleanup
# Conflicts:
#	modules/backend/formwidgets/FileUpload.php
2018-08-24 19:52:54 +02:00
Nathan van der Werf 0f0d108da0
Remove unused imports 2018-08-24 19:51:59 +02:00
Nathan van der Werf 66fa03f17e
Revert "Remove unused imports"
This reverts commit 742a5f415b.
2018-08-24 19:40:40 +02:00
Luke Towers 787c2244bf Improved inline-options CSS for checkboxlist fields 2018-08-23 10:00:51 -06:00
Szabó Gergő e46eff8a26 Remove hard height constraint from previewing uploaded images (#3718)
Fixes #3698. Credit to @gergo85
2018-08-23 09:32:18 -06:00
Luke Towers fd4ee47065 Improved repeater item collapse button when remove button not present 2018-08-22 21:06:06 -06:00
Luke Towers 29c0c8c33d Improvements to Repeater form widget styling
Improved the styling of the Repeater form widget, made it easier to distinguish between individual repeater items
2018-08-22 20:51:26 -06:00
Luke Towers 3011c39d2b Add inline-options css class for checkboxlist fields
Documented by f4440ced6c
2018-08-22 16:39:02 -06:00
Samuel Georges eb2419cc74 Typo 2018-08-21 13:28:12 +10:00
Samuel Georges bf841b4340 Minor peer review 2018-08-21 13:24:59 +10:00
Samuel Georges 8383466508 Introduce events for extending Theme configuration 2018-08-21 13:18:22 +10:00
vanmil 38bf854051 Add ability to use model method to define availableColors (#3704)
Credit to @vanmil. Documented in https://github.com/octobercms/docs/pull/314
2018-08-20 08:45:26 -06:00
Luke Towers 1032fd0cc1 Added more inline API event docs:
Added docs for:
cms.component.beforeRunAjaxHandler
cms.component.runAjaxHandler

Improved docs for:
cms.ajax.beforeRunHandler
2018-08-18 09:05:38 -06:00
Luke Towers 1c7b311ea9 Added inline API documentation for media manager:
Added documentation for the following events:
media.folder.delete
media.file.delete
media.folder.rename
media.file.rename
media.folder.create
media.folder.move
media.file.move
media.file.upload
2018-08-18 08:49:57 -06:00
Samuel Georges ab4074cec1 Extra table check
Fixes #3706
2018-08-18 12:52:05 +10:00
Nathan van der Werf 4142c9c9e6 Modify sorting icon from "desc" to "asc" (#3705)
Credit to @nathan-van-der-werf
2018-08-17 15:12:41 -06:00
Szabó Gergő 7aca6057bb Improve the markup tags settings page UX (#3703)
Credit to @gergo85
2018-08-17 11:13:14 -06:00
Szabó Gergő 37da24d060 Update the Hungarian translation (#3702)
Credit to @gergo85
2018-08-17 10:27:23 -06:00
SeriousKen 5707508dbc Update ThemeLog when file name is changed (#3696)
Credit to @SeriousKen
2018-08-17 10:25:18 -06:00
Szabó Gergő bf0f1faa4f Change the Status reportwidget icons (#3693)
Credit to @gergo85
2018-08-16 08:19:49 -06:00
Maria Vilaró 5c72ad1474 Add translations for Catalan (#3694)
Credit to @mariavilaro.
2018-08-16 08:14:26 -06:00
Samuel Georges ab7dda260b User disabled plugins now stay disabled after sign in
Fixes #1795
Fixes #3691
2018-08-16 14:11:05 +10:00
Luke Towers be839d0a07 Documented FilterWidget events:
Added inline documentation for the following filter widget events:
backend.filter.extendQuery
backend.filter.extendScopesBefore
backend.filter.extendScopes
2018-08-15 21:42:56 -06:00
Luke Towers 4078e6a56f Provide inline documentation for the FormWidget events:
Documented the following:
backend.form.beforeRefresh
backend.form.refreshFields
backend.form.refresh
backend.form.extendFieldsBefore
backend.form.extendFields
model.form.filterFields
2018-08-15 21:00:31 -06:00
Nathan van der Werf 0716101bc8 Merge unset statements 2018-08-15 19:26:49 +02:00
Nathan van der Werf ee9414f3fd Simplify ternary operators 2018-08-15 19:26:20 +02:00
Nathan van der Werf 8b6f11e6ac Extract child instructions 2018-08-15 19:25:42 +02:00
Nathan van der Werf fbca3bea92 Remove redundant variables 2018-08-15 19:23:12 +02:00
Nathan van der Werf ab73442e3d Add missing break statement 2018-08-15 19:18:52 +02:00
Nathan van der Werf 2cdbb37a36 Remove duplicate array keys in language files 2018-08-15 19:18:26 +02:00
Nathan van der Werf 62c59a4903 Refactor ternary operators to null coalescing operators 2018-08-15 19:15:13 +02:00
Nathan van der Werf a3d7a028b4 Replace is_null with "=== null" comparison 2018-08-15 18:54:46 +02:00
Nathan van der Werf 77b6f07291 Modify conditions to use elvis operators 2018-08-15 18:53:11 +02:00
Nathan van der Werf bc17975634 Remove alias functions 2018-08-15 18:51:25 +02:00
Nathan van der Werf 123145fd54 Remove unnecessary parentheses 2018-08-15 18:49:52 +02:00
Nathan van der Werf a075be206b Replace class references with "self" 2018-08-15 18:47:06 +02:00
Nathan van der Werf 02bd38cfb1 Merge if constructs 2018-08-15 18:45:37 +02:00
Nathan van der Werf 0947406343 Remove senseless proxy functions 2018-08-15 18:35:15 +02:00
Nathan van der Werf 3a918ad200 Remove "null" assignments 2018-08-15 18:33:24 +02:00
Nathan van der Werf 11e8a3a92c Remove methods which are identical to parent method 2018-08-15 18:30:03 +02:00
Nathan van der Werf 742a5f415b Remove unused imports 2018-08-15 18:27:36 +02:00
Luke Towers 8cbfd6611a Finished documenting Lists widget's events:
backend.list.extendQueryBefore
backend.list.extendQuery
backend.list.extendRecords
backend.list.extendColumns
backend.list.overrideHeaderValue
backend.list.injectRowClass

Also improved:
backend.list.overrideColumnValue
backend.list.overrideColumnValueRaw
2018-08-13 08:11:35 -06:00
Luke Towers cbed54a263 Implemented minItems repeater property on client & server
Also implemented maxItems on server (previously only client). Fixes https://github.com/octobercms/october/issues/3668
2018-08-12 01:33:51 -06:00
Luke Towers 6774920003 Finish implementing titleFrom option for Repeaters
Ref: e7609aa5e8
2018-08-11 20:27:53 -06:00
vanmil 4cdbf2a051 Add customization of froala lineBreaker tags (#3687)
Credit to @vanmil
2018-08-11 13:33:34 -06:00
Szabó Gergő b564e3178d Only add missing dependencies once (#3682)
Only add missing dependencies to the list of missing dependencies once per dependency. Credit to @gergo85
2018-08-09 07:39:37 -06:00
datune 5fd3e8b373 Update lang.php (#3498)
Provide a translation for the single error message that gets displayed when the application is in production. @see https://github.com/octobercms/october/issues/2106
Credit to @datune
2018-08-09 07:34:45 -06:00
Alexander Shapoval 1e7c3691e7 Cast outside field config to array (#3670)
This is necessary to enable the setting of tabs for SECTION_OUTSIDE: http://octobercms.com/docs/backend/forms#form-tab-options. Credit to @ebashu-on-holidays
2018-08-06 10:49:19 -06:00
Luke Towers 99478a4fcc Remove unnecessary reference.
Fixes #3044
2018-08-06 08:25:23 -06:00
vosco88 7e6800ea6e Added Slovak translations (#3671)
Credit to @vosco88.
2018-08-05 18:16:27 -06:00
Szabó Gergő 31be214f60 Apply custom secondary color to asset list (#3658)
Credit to @gergo85
2018-07-30 08:28:33 -04:00
0x90 d5829c75cf Allow tabs to be closed with middle click (#3633)
Enables closing backend tabs with the middle mouse click. Credit to @AxDSan. Fixes #1970.
2018-07-25 13:54:49 -04:00
Steve Mortimer 5936107c07 Reset pagination on filter scope change (#3632)
Fixes #3610. Credit to @stevemortimer
2018-07-16 09:43:47 -04:00
Szabolcs Palmer 157b08202b Adds align support to non-sortable list column headers (#3638)
Credit to @Szasza
2018-07-15 00:56:09 -04:00
Michał Płodowski 68ee471d39 Add showWeekNumbers option to datepicker (#3637)
Fixes #3634. Credit to @mplodowski
2018-07-12 18:10:24 -04:00
Luke Towers dd6a05bdc4 Removed circular dependency
Removes a circular dependency from windex.variables.less that triggers https://github.com/kriswallsmith/assetic/issues/881.
2018-07-06 14:40:50 -04:00
Jim Cottrell bfee483805 Adds support for minifying framework assets (#3240)
Fixes #2753. Credit to @jimcottrell
2018-07-05 17:57:17 -04:00
Lucas Thurston 85dd0b9968 Add config flag for disabling basedir restrictions for local development only (#3626)
Fixes #3619. Credit to @lthurston
2018-07-05 17:07:38 -04:00
Luke Towers c55a7cd2e2 Target only immediate children when determining if a tab should be hidden
Fixes #3627. This changes the logic for hiding tabs when all of their fields are hidden to specifically only target direct children of the tab pane when looking for visible fields because repeaters will have fields present that are only hidden by virtue of the parent field being hidden however the previous behaviour would consider it visible.
2018-07-05 10:14:41 -04:00
interworks-morr d52274bbb6 Don't show mail branding menu item unless system.manage_mail_templates is assigned to current user (#3624)
Fixes #3623. Credit to @interworks-morr
2018-07-02 19:14:51 -04:00
Samuel Georges 000a880742 Alternative fix to #3607
Fixes #3607
Fixes #3606
2018-06-29 14:20:55 +10:00
Scott Bedard 8b650e3bd0 Display error when migration file is not found (#3597)
Fixes #3590. Credit to @scottbedard
2018-06-25 15:51:07 -06:00
Samuel Georges fb2aa1730c Fixes security issue
Refs #3604
2018-06-22 22:57:38 +10:00
Christian 0eac53bdd1 Fix pathing issue in media manager (#3604)
Fix pathing issue in media manager

Currently there is a way to manipulate folder names using the request headers for the medafinder folder path. since `validatePath` does not validate file names but rather only validates the existence of a folder in a parent/subdirectory. We can utilize `validateFileName` to verify if the name of the folder path being created is valid during the folder creation process and the name applying process.
2018-06-22 16:35:33 +10:00
Luke Towers c46dc38ed1 Compiled assets 2018-06-07 00:09:12 -06:00
whsol 15cdf6e71f Make code parser data cache key configurable (#3373)
Credit to @whsol
2018-06-05 10:10:35 -06:00
Ma3ffin 19acc0afc0 Improved German Translation (#3579)
Credit to @Ma3ffin.
2018-06-04 16:30:49 -06:00
Luke Towers 0086a47b80 Add attachOnUpload option to FileUpload formwidget
Fixes #3501
2018-06-04 16:22:23 -06:00
Viamage 5ec5336a79 Improved Polish translations (#3578)
Credit to @viamage
2018-06-03 06:54:49 -06:00
Ayumi Hamasaki 5ee8ee0917 Fix the loading indicator appearing transparent over buttons(#3576)
Fixes #3571. Credit to @ayumihamsaki. Thanks to @petehalverson for his PR testing system, this is the first PR I'm merging after testing it with that system.
2018-06-01 09:07:10 -06:00
danharrin ce3c923c6f Translate "Row" in _import_result_form.htm (#3574)
Fixes #3566. Credit to @danharrin
2018-05-31 15:14:08 -06:00
danharrin 3f449ea3bd Improve PHP 7.2 compatibility (#3572)
Fixes #3570. Credit to @danharrin
2018-05-31 13:09:47 -06:00
Viamage 667b82e6ce Replace keyup listener with input listener (#3567)
Fixes #1270. Credit to @viamage
2018-05-30 20:26:38 -06:00
Luke Towers 7d4912b80a Revert "Use fireCombinedEvent to handle fireSystemEvent."
This reverts commit eb5b568b6f.
2018-05-17 02:16:19 -06:00
Luke Towers eb5b568b6f Use fireCombinedEvent to handle fireSystemEvent.
Refs: d0cdf0ae6e
2018-05-17 01:44:41 -06:00
Wellyson Freitas c12b76de75 Add extensibility to auth restore view (like signin view) (#3549)
Credit to @wellyfrs.
2018-05-17 00:56:39 -06:00
datune 08ad167f91 Allow SVG as a backend logo file type (#3548)
Fixes #3442
2018-05-14 11:27:40 -06:00
Ayumi Hamasaki 026ae1e15f Fix Scrolling bug (#3547)
Fixes #3542
2018-05-13 16:32:12 -06:00
Samuel Georges 83a1608d9b Minor styling improvement 2018-04-30 08:58:22 +10:00
Joey 541f0a78f1 Fix for missing _group field when saving data from a nested group repeater (#3523)
Fixes #3067. Credit to @Narkoleptika. Thanks to @petehalverson for his docker container work for replicating.
2018-04-26 00:13:28 -06:00
QuangTrọngOnline 3ef571da3c Added Vietnamese translation (#3514)
Credit to @quangtrongonline.
2018-04-24 11:41:01 -06:00
Sebastian Hilger 07dbd0c729 Add searchOnEnter option to make the Search widget fire on enter key (#3524)
Documented in e56468a95b. Credit to @manogi. 
Added an option to change from the "search on every keystroke" functionality to one where the serach is only fired when hitting the enter key. This makes sense when having larger datasets or CMS users who are slow typers.
2018-04-23 10:09:37 -06:00
Wellyson Freitas 2ffae8ccbc Add alignment and size options to loader indicator (#3522)
Add option to horizontally align the loader indicator in the center and option to change the size (only small size available for now) through the JavaScript API. These abilities were already available through CSS, this commit makes them available through JS as well.
2018-04-21 09:28:18 -06:00
Luke Towers 92e346296e Added cms.ajax.beforeRunHandler event 2018-04-19 10:26:50 -06:00
Luke Towers ed760d892b Compiled client side language files 2018-04-19 10:23:38 -06:00
Luke Towers 4d304645d7 Added readonly support to the mediamanager widget and the ability to set the MediaLibary cache key through code 2018-04-19 10:23:15 -06:00
Luke Towers 08d8b33fc6 Whitespace 2018-04-19 10:21:25 -06:00
Sevdin Filiz 5b335b385e Update system/lang.php (typo fix) (#3513)
Credit to @angelside
2018-04-19 01:58:22 -06:00
Tobias Kündig 2b22b26676 Added align property to list columns definition (#3509)
Documented in https://github.com/octobercms/docs/pull/289; credit to @tobias-kuendig
2018-04-17 23:34:08 -06:00
Luke Towers 5acbdb12fe Compiled assets and whitespace cleanup 2018-04-17 13:43:51 -06:00
Luke Towers da17a96926 Make uploaded import files private by default 2018-04-17 11:14:43 -06:00
Szabó Gergő 955af8cbc4 Update the Hungarian locale (#3510)
Credit to @gergo85
2018-04-17 10:35:35 -06:00
Luke Towers 4f7a08954d Updating links in composer files 2018-04-16 02:33:08 -06:00
Gonzalo Henríquez 1d33c69c8c Allow for custom client-side localization strings (#3505)
Fixes #3504. Allows for localization strings to be considered before client-side lang compilation. Credit to @bombozama
2018-04-15 01:39:30 -06:00
Alexandre Villeneuve 812b96bdac Add humans.txt to mirror files (#3494) 2018-04-10 17:50:01 -06:00
Luke Towers 0ac7f340be Remove sensitive data from the tracked config files after running october:env 2018-04-06 01:18:07 -06:00
Luke Towers 8df92f4ba1 Merge branch 'develop' of https://github.com/octobercms/october into develop 2018-04-05 22:10:59 -06:00
Luke Towers 5cbadd447a Fix typo in 97e156d43d 2018-04-05 22:10:43 -06:00
Samuel Georges 2164c07616 Preserve multi field types with trigger use
Refs #3195
Refs #2861
Refs https://github.com/daftspunk/oc-test-plugin/pull/41
2018-04-06 10:58:56 +10:00
Samuel Georges 97e156d43d Tidy up logic from #3465, move helper functions out 2018-04-04 14:35:29 +10:00
Pierre-André Vullioud cc082d0510 Return empty from Backend::dateTime instead of current date (#3246)
This changes Backend::dateTime to return an empty string instead of the current date when dealing with a null date. It should only affect the date field preview instance. Credit to @pvullioud
2018-03-30 10:06:47 -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
MartynasJanu 13dadaa667 Set trigger targets arbitrary levels above current form context (#3465)
Fixes #3260. Enables setting the target field for the trigger API to a form context an arbitrary number of levels above the current field by prepending the field name with `^` for each level to go up. For instance, if you had a field [allow_pictures] in the base form and a [records] repeater with [image] fields, and you set the target field for the trigger on [image] to [^allow_pictures] then it would work properly instead of looking for an [allow_pictures] field on the [records] field. Credit to @MartynasJanu. Documented in edc78b584b
2018-03-21 23:25:18 -06:00
Sergey Karavay 4a2e959fb8 Fixed Russian map for "щ" and added Belarusian map (#3463)
Credit to @GinoPane
2018-03-21 11:22:59 -06:00
Luke Towers 23a504d9d5
Allow settings models and controllers to be defined in one definition
This change allows both settings models and custom settings controllers to be registered in one definition by preventing overwriting of the provided `url` when present. This enables the use case of extending the base \System\Controllers\Settings controller to implement custom functionality on your settings controller while retaining the majority of the default functionality enabled through the use of a SettingsModel.
2018-03-20 13:40:14 -06:00
Mohamed Ali Behiry e3635b80e7 Added partial Arabic translation (#3296)
Credit to @mabehiry
2018-03-20 13:20:09 -06:00
Raja Khoury d977ba54b5 Fixes S3 media items in bucket root folders (#3461)
FIxes #3445. Credit to @rajakhoury
2018-03-20 10:57:13 -06:00
Miro Rauhala 610452078d Update Finnish translations (#3460)
Credit to @mirorauhala
2018-03-19 15:36:53 -06:00
Mateusz Charytoniuk 318e9d7e76 Import CSV rows one at a time (#3450)
Credit @mcharytoniuk.

While importing over 250k records ImportModel kept running into various problems. One of them was too big memory usage - `ImportModel` loaded the complete file upfront (`$reader->fetchAll()`). Simple one-line change to `$reader->fetch()` makes `ImportModel` import CSV file row-by-row and returning an iterator which limits memory usage and allows data to be imported. This change optimizes memory usage and allows much simpler importing of larger files.
2018-03-14 12:53:18 -06:00
CaptainTF 7a6f1d3c85 Improved Simplified Chinese (zh-CN) translation (#3447)
Credit to @CaptainTF
2018-03-12 23:26:34 -06:00
Luke Towers 422a99770c
Attach uploaded files directly to parent if exists
If the parent of the file attachment relationship already exists, then attach the file directly to it in this request instead of going through deferred bindings. Will continue to attach files through deferred binding if the parent relation doesn't exist.
2018-03-09 23:47:16 -06:00
Luke Towers f056e8dcb2
Retrieve protected files using the defined file model
Adds support to retrieve protected files using the class they are defined to be using if that class differs from the default System\Models\File class. This makes it possible to use a custom class extending the base file model class that does output processing on the file data (for example, an EncryptedFile class that has to decrypt the file contents before they can be output to the browser).
2018-03-09 23:07:53 -06:00
Tobias Kündig 55d49cbf2b Cache the last visited page in the list widget (#3432)
Stores the last visited page of list widgets in the session to restore to on next page load. Does not apply when filters / searches are applied. Credit to @tobias-kuendig
2018-03-08 10:52:21 -06:00
Alexander Shapoval 13596c8629 Add Cache-Control header to combined assets (#3430)
Related: #2474
2018-03-06 08:31:37 -06:00
Luke Towers 2f55850ae9
Merge pull request #3379 from octobercms/ux-pluginmanagement
Fixes #2714, #2774.

Plugin Management UX Improvements
The plugin management screen has been improved to allow managing the status of plugins (updates disabled/enabled, plugin enabled/disabled) on the overview page and allow bulk management of plugins as well. Additionally, the Reset Plugin Data action has been added to the bulk action menu; this is essentially the same as calling `php artisan plugin:refresh Author.Plugin`, which reverses all the migrations for that plugin then reapplies them; effectively reseting the plugin's database data. Due to the destructive nature of this action it has been limited to only be available to Super Users and only when the site is in debug mode.

Thanks to @Teranode for his assistance on this.
2018-03-04 22:42:18 -06:00
Luke Towers 89f9c51f55 Make the Reset Plugin Data action available to only SuperUsers only when the site is in debug mode 2018-03-04 22:34:49 -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
Luke Towers 3d18e5d466 Fixes #3412. Prevent users from being able to modify their own groups. 2018-02-23 13:41:11 -06:00
Ramin Firooz 8ba63dd428 Updated Farsi Translation (#3404)
Credit to @EleRam
2018-02-17 17:12:34 -06:00
Luke Towers bd9f88587f
Fix issues with MySQL utf8mb4 support
Fixes: https://github.com/octobercms/october/issues/1927. Related: https://github.com/laravel/framework/issues/17508. Issue occurs when database configuration related to full support for the utf8mb4 charset is incorrect; MySQL > 5.7 & MariaDB > 10.2 doesn't have this issue because they default to the correct configuration values; this fix solves the issue for older versions of MySQL and MariaDB without requiring database server configuration changes.

The root cause of the issue with the utf8mb4 encoding is that both InnoDB and MyISAM have too low of an index key prefix limit (767 bytes and 1000 bytes respectively) to properly store 255 4-byte characters; which would take 1024 bytes. See the docs on InnoDB limitations: https://dev.mysql.com/doc/refman/5.7/en/innodb-restrictions.html

In MySQL >= 5.7 & MariaDB >= 10.2 this limit has been bumped to 3076 bytes by the changing of the default value of the `innodb_large_prefix` configuration property (introduced in MySQL 5.5) to true; which is what bumps up the limit. In order to manually set that property to true on earlier versions, `innodb_file_format` must be set to `BARRACUDA` and `row_format` must be `DYNAMIC` or `COMPRESSED`. See http://mechanics.flite.com/blog/2014/07/29/using-innodb-large-prefix-to-avoid-error-1071/ for more information. 

This change fixes the issue by changing the default string length to 191 (total of 764 bytes, within the older size limit) when the MySQL database config is detected to be using the utf8mb4 charset.
2018-02-17 17:00:32 -06:00
Sajjad Servatjoo 708b1e3a75 Update Persian Language (#3396)
Credit to @sajjad-ser
2018-02-13 10:55:06 -06:00
Alex360hd 687f97f792 Remove loader background color (#3394)
Fixes #3393. Credit to @Alex360hd
2018-02-13 10:51:39 -06:00
Luke Towers 9840ff228f
Support absolute redirects in the formcontroller
Supports absolute redirects being used in the FormController behaviour.

If the form_config.yaml specifies 
```twig
create:
    redirect: https://api.example.com/oauth/authorize
```
Then the behaviour will now properly redirect the user to the URL provided where previously it would redirect to a url along the lines of `october.example.com/backend/https://api.example.com/oauth/authorize`. Relative backend redirect URLs are unchanged.
2018-02-06 14:42:24 -06:00
Luke Towers a916d99de4
Prevent indexing of backend login page
Refs: 77ae173c24
2018-02-02 15:00:49 -06:00
Luke Towers 77ae173c24
Prevent indexing of backend pages
Fixes #3380
2018-02-02 13:35:59 -06:00
Luke Towers 2f7cc96b6d
Improve status check
Only check for a writable themes directory if the Cms module is loaded.
2018-02-02 13:23:53 -06:00
Luke Towers fd47e455c0 Revised plugin mangement bulk action iconography 2018-02-02 00:25:57 -06:00
Luke Towers 9b66eb5c57 Improvements to frontend assets for plugin management 2018-02-01 20:52:47 -06:00