mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
517abc6e35
If a user tries to paginate the blog using a value that is not an integer SilverStripe will throw a server error. Example. Visiting `blog/?start=10.1` will cause the following server error: ```You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '10.1' at line 8``` This change casts the pagination variable to an int before using it. Note, this fix is for the master branch of the blog for SilverStripe 4. |
||
---|---|---|
_config | ||
.tx | ||
client | ||
docs | ||
lang | ||
src | ||
templates | ||
tests | ||
_config.php | ||
.codecov.yml | ||
.editorconfig | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.sass-lint.yml | ||
.scrutinizer.yml | ||
.travis.yml | ||
.upgrade.yml | ||
changelog.md | ||
code-of-conduct.md | ||
composer.json | ||
license.md | ||
package.json | ||
phpcs.xml.dist | ||
phpunit.xml.dist | ||
README.md | ||
webpack.config.js |
SilverStripe Blog Module
Documentation
Requirements
- SilverStripe CMS 4.0+
- SilverStripe Lumberjack Module 2.0+
- SilverStripe Tag Field Module 2.0+
- SilverStripe Assets 1.0+
- SilverStripe Asset Admin Module 1.0+
Note: this version is compatible with SilverStripe 4. For SilverStripe 3, please see the 2.x release line.
Suggested Modules
- SilverStripe Widgets Module
- SilverStripe Comments Module
Installation
composer require silverstripe/blog
Upgrading
Upgrading from 2.x to 3.x
Aside from the framework and CMS upgrades required the blog module should not require anything extra to be completed.
Upgrading legacy blog to 2.x
If you're upgrading from blog version 1.0 to 2.x you will need to run the BlogMigrationTask
. Run the task using dev/tasks/BlogMigrationTask
either via the browser or sake CLI to migrate your legacy blog to the new version data structure.