Topic #4042 (no title)

Image

(Click to enlarge)

#3526 - $util.srl must be used consistently

This is a spacer post for a website comment topic. The content this topic relates to: #3526 - $util.srl must be used consistently
I have updated tut_tempcode to better explain the point of:
- $BASE_URL_NOHTTP
- $FIND_SCRIPT_NOHTTP
- $IMG used in conjunction with $util.srl

In all cases it allows provides when running both HTTPS and HTTP together.
In the case of $FIND_SCRIPT_NOHTTP it also provides safety for multi-domain environments.
To provide some further context...

Composr uses absolute URLs throughout, to radically simplify things, such as not having to be knowing where you're relative to, the need for portable context-free code, and the need for PHP itself to call up URLs outside any context.

This is fine and dandy in all situations except JS, which has it's various sandboxing limitations.

Fixed by https://github.com/ocproducts/composr/commit/6808c50844db063cc1a0dda2171c38cbb1eca8f0
0 guests and 0 members have recently viewed this.