Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit 27c17ed

Browse files
committed
Update qualified hostname construction
Signed-off-by: Stéphane HULARD <s.hulard@chstudio.fr>
1 parent 2266e49 commit 27c17ed

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

config/phing/wordpress.xml

+14-11
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,21 @@
1919
</if>
2020
</else>
2121
</if>
22-
</target>
2322

24-
<!-- Build a valid HostName with port if different of 80 -->
25-
<if>
26-
<and>
27-
<not><equals arg1="${server.port}" arg2="80" /></not>
28-
<not><equals arg1="${server.port}" arg2="" /></not>
29-
</and>
30-
<then>
31-
<property name="server.qualified-hostname" value="${server.hostname}:${server.port}" override="true" />
32-
</then>
33-
</if>
23+
<!-- Build a valid HostName with port if different of 80 -->
24+
<if>
25+
<and>
26+
<not><equals arg1="${server.port}" arg2="80" /></not>
27+
<not><equals arg1="${server.port}" arg2="" /></not>
28+
</and>
29+
<then>
30+
<property name="server.qualified-hostname" value="${server.hostname}:${server.port}" override="true" />
31+
</then>
32+
<else>
33+
<property name="server.qualified-hostname" value="${server.hostname}" override="true" />
34+
</else>
35+
</if>
36+
</target>
3437

3538
<!--################################################################################-->
3639
<target name="wp:help" description="Print help for current phing command">

0 commit comments

Comments
 (0)