Skip to content

Commit 3fd6a62

Browse files
committed
Add requirements.php
1 parent aed07d6 commit 3fd6a62

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
1.0.2 (Unreleased)
5+
----------------------
6+
- Enh #5: Add `requirements.php`
7+
48
1.0.1 (April 19, 2021)
59
----------------------
610
- Fix #1: Rename Module ID Script misses translation codes

module.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "A very basic module example",
55
"keywords": [
66
],
7-
"version": "1.0.1",
7+
"version": "1.0.2",
88
"humhub": {
99
"minVersion": "1.2"
1010
},
1111
"screenshots": ["resources/screen1.jpg"]
12-
}
12+
}

requirements.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
if (!Yii::$app->urlManager->enablePrettyUrl) {
4+
return 'Please enable URL Rewriting: https://docs.humhub.org/docs/admin/installation/#pretty-urls';
5+
}
6+
7+
return null;

0 commit comments

Comments
 (0)