Skip to content

Commit

Permalink
coalesce operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Wiggins authored and Pedro Belo committed Nov 1, 2011
1 parent c1186e2 commit 0d1ded0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AppInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function appSecret() {
* @return the home URL for this site
*/
public static function getHome () {
return ($_SERVER['HTTP_X_FORWARDED_PROTO'] || "http") . "//" . $_SERVER['HTTP_HOST'] . "/";
return ($_SERVER['HTTP_X_FORWARDED_PROTO'] ?: "http") . "//" . $_SERVER['HTTP_HOST'] . "/";
}

}

0 comments on commit 0d1ded0

Please sign in to comment.