Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b42b20

Browse files
Add variable to enable short tagging
1 parent172135d commit7b42b20

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For help running these locally with docker run see the [docker run reference](ht
3939
| PHP_SESSION_STORE_REDIS_HOST| If not set, defaults to 'redis'. Only used if PHP_SESSION_STORE is set to redis||||
4040
| PHP_SESSION_STORE_REDIS_PORT| If not set, defaults to 6379. Only used if PHP_SESSION_STORE is set to redis||||
4141
| PHP_DISABLE_CACHE_HEADERS| Set to any value (1, true, etc) to disable PHP's default pragma: no-cache headers||||
42-
42+
| PHP_ENABLE_SHORT_TAGS| Set to any value (1, true, etc) to enable PHP short tagging||||
4343

4444
#The web mode/command
4545

‎scripts/start-web.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ if [ ! -z "$PHP_FPM_WORKERS" ]; then
173173

174174
fi
175175

176+
# Enable short tags for older sites
177+
if [!-z"$PHP_ENABLE_SHORT_TAGS" ];then
178+
sed -i -e's/short_open_tag = Off/short_open_tag = On/g' /etc/php/php.ini
179+
fi
180+
176181
# Nginx custom snippets
177182
if [-f /etc/nginx/custom.conf ];then
178183
printf"%-30s %-30s\n""Custom Nginx Snippet:""Enabled"

‎scripts/start-worker.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ if [ ! -z "$PHP_SESSION_STORE" ]; then
112112

113113
fi
114114

115+
# Enable short tags for older sites
116+
if [!-z"$PHP_ENABLE_SHORT_TAGS" ];then
117+
sed -i -e's/short_open_tag = Off/short_open_tag = On/g' /etc/php/php.ini
118+
fi
119+
115120
# Cron
116121
# If DISABLE_CRON is set:
117122
if [!-z"$DISABLE_CRON" ];then

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp