Skip to content

Commit

Permalink
Add requirements.php
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Mar 14, 2024
1 parent aed07d6 commit 3fd6a62
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.0.2 (Unreleased)
----------------------
- Enh #5: Add `requirements.php`

1.0.1 (April 19, 2021)
----------------------
- Fix #1: Rename Module ID Script misses translation codes
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "A very basic module example",
"keywords": [
],
"version": "1.0.1",
"version": "1.0.2",
"humhub": {
"minVersion": "1.2"
},
"screenshots": ["resources/screen1.jpg"]
}
}
7 changes: 7 additions & 0 deletions requirements.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

if (!Yii::$app->urlManager->enablePrettyUrl) {
return 'Please enable URL Rewriting: https://docs.humhub.org/docs/admin/installation/#pretty-urls';
}

return null;

0 comments on commit 3fd6a62

Please sign in to comment.