1210 Commits

Author SHA1 Message Date
Giuseppe Criscione
2577d5d16c Fix password hash being always unset in User::__construct() 2020-11-08 15:08:27 +01:00
Giuseppe Criscione
1cba75a7dc Extract SingletonTrait from Admin and Formwork classes 2020-11-07 16:45:43 +01:00
Giuseppe Criscione
cb3e155a8f Make LanguageCodes::$codes a constant 2020-11-06 12:15:32 +01:00
Giuseppe Criscione
d3fe8e8834 Add content property to Page to restore access from get() 2020-11-06 12:03:19 +01:00
Giuseppe Criscione
49e928f137 Deprecate FileSystem::create() 2020-11-05 20:16:24 +01:00
Giuseppe Criscione
46907ca880 Add explicit Admin::users() and Admin::translation() 2020-11-05 19:50:33 +01:00
Giuseppe Criscione
772f0f6fd4 Cleanup code 2020-11-05 19:43:56 +01:00
Giuseppe Criscione
38f9d478e9 Deprecate User::get() and User::has() 2020-11-05 19:41:40 +01:00
Giuseppe Criscione
1be9e5b00b Rewrite data fields as properties in User class 2020-11-05 19:39:43 +01:00
Giuseppe Criscione
f962a90397 Always load cache 2020-11-05 16:00:32 +01:00
Giuseppe Criscione
dab06de70c Fix return types 2020-11-05 11:40:42 +01:00
Giuseppe Criscione
1a8800ab59 Use random_int() instead of rand() and mt_rand() 2020-11-05 00:52:46 +01:00
Giuseppe Criscione
14c35bfc75 Throw an exception when an uploaded file cannot be moved 2020-11-05 00:46:58 +01:00
Giuseppe Criscione
17233d6368 Check filename and path lengths in Uploader::move() 2020-11-05 00:43:52 +01:00
Giuseppe Criscione
d1a023d4a2 Add FileSystem::MAX_PATH_LENGTH and FileSystem::MAX_NAME_LENGTH 2020-11-05 00:31:48 +01:00
Giuseppe Criscione
46ece4b758 Update lint scripts in package.json 2020-11-05 00:30:59 +01:00
Giuseppe Criscione
57f6bac50c Remove .eslintignore 2020-11-05 00:30:56 +01:00
Giuseppe Criscione
6cac9ed286 Prevent click and drop on file inputs when their forms are submitted 2020-11-05 00:23:43 +01:00
Giuseppe Criscione
5e710de74f Display a spinner when files are being uploaded 2020-11-05 00:04:56 +01:00
Giuseppe Criscione
e387126ffc Add HTMLFormElement.requestSubmit() polyfill 2020-11-04 23:18:33 +01:00
Giuseppe Criscione
4aa126c943 Use form.requestSubmit() instead of form.submit() to trigger properly events 2020-11-04 23:12:02 +01:00
Giuseppe Criscione
18c973a96b Fix Page::reload() not setting some properties to null 2020-11-04 23:10:08 +01:00
Giuseppe Criscione
5f5d75b120 Use FileSystem::normalizePath() and FileSystem::joinPaths() when possible 2020-11-04 16:57:30 +01:00
Giuseppe Criscione
91f7c3fcba Add FileSystem::joinPaths() 2020-11-04 15:59:04 +01:00
Giuseppe Criscione
e0c1b2df03 Deprecate FileSystem::normalize() 2020-11-04 15:54:18 +01:00
Giuseppe Criscione
af878bdb67 Add FileSystem::normalizePath() variant which does not force trailing slashes 2020-11-04 15:52:54 +01:00
Giuseppe Criscione
db30178af6 Normalize duplicated slashes with FileSystem::Uri() 2020-11-04 15:45:07 +01:00
Giuseppe Criscione
4166402045 Add Str::wrap() 2020-11-03 22:18:43 +01:00
Giuseppe Criscione
729a75004a Add missing type declarations 2020-11-03 19:14:01 +01:00
Giuseppe Criscione
5fcbc48e6f Remove superfluous PHPDoc 2020-11-03 18:58:12 +01:00
Giuseppe Criscione
6496b69c36 Fix coding style with PHP-CS-Fixer 2020-11-03 18:48:04 +01:00
Giuseppe Criscione
ccca1ea129 Update PHP-CS-Fixer configuration 2020-11-03 18:46:49 +01:00
Giuseppe Criscione
6190b05f56 Remove incompatible parent from Avatar class 2020-11-02 22:54:19 +01:00
Giuseppe Criscione
3b8d5a4fee Fix data access in cover image partial template 2020-11-02 19:16:20 +01:00
Giuseppe Criscione
0a3afe0326 Enforce string keys in Arr::get() and Arr::has() 2020-11-02 19:10:57 +01:00
Giuseppe Criscione
e4a6daf9ac Deprecate non-string used as key in getters and setters 2020-11-02 19:10:14 +01:00
Giuseppe Criscione
03fb2d960a Deprecate DataGetter::has() use with an array as key 2020-11-02 19:06:52 +01:00
Giuseppe Criscione
c165a7b2fd Use DataGetter::hasMultiple() in admin controllers 2020-11-02 19:05:00 +01:00
Giuseppe Criscione
e83beb9aee Add DataGetter::hasMultiple() 2020-11-02 19:03:31 +01:00
Giuseppe Criscione
93bc402845 Add return types 2020-11-02 18:35:32 +01:00
Giuseppe Criscione
65a04ea5e7 Release 1.9.1 1.9.1 2020-10-31 15:26:32 +01:00
Giuseppe Criscione
8ec5398aef Update npm packages 2020-10-31 15:24:47 +01:00
Giuseppe Criscione
9d4ba91b2e Invalidate cache also when system options are changed 2020-10-31 11:31:00 +01:00
Giuseppe Criscione
604bc09c94 Fix undefined variable in Pages::delete() 2020-10-31 11:28:16 +01:00
Giuseppe Criscione
f16a1f113a Release 1.9.0 1.9.0 2020-10-29 14:33:56 +01:00
Giuseppe Criscione
6338110bb9 Update Composer packages 2020-10-29 14:29:41 +01:00
Giuseppe Criscione
a4e0ca5b03 Use Str::slug() to support tags with special characters 2020-10-28 15:19:43 +01:00
Giuseppe Criscione
1027fa4d62 Add slug template helper 2020-10-28 15:18:24 +01:00
Giuseppe Criscione
412c05e4d0 Add Str::slug() 2020-10-28 15:17:45 +01:00
Giuseppe Criscione
db54949036 Fix PageCollection::filter() coercing $value parameter to bool 2020-10-28 14:40:17 +01:00