This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
api_incompatibilities [2014/08/14 22:03] 127.0.0.1 external edit |
api_incompatibilities [2018/10/26 15:33] (current) |
||
---|---|---|---|
Line 11: | Line 11: | ||
===== $sl ===== | ===== $sl ===== | ||
- | CMSimple_XH 1.5 introduced the concept of subsites. This feature builds upon the well know and thouroughly tested feature of multi language sites. The drawback: for subsites $sl doesn't hold an ISO-639-1 language code. So plugin authors should neither rely on strlen($sl)==2 nor on $sl being a true ISO-639-1 language code. If your plugin is not able to cater for the new situation, it should be enough to document, that it can't be used with the new subsite feature. Probably only a minority of CMSimple_XH installations will use subsites. | + | CMSimple_XH 1.5 introduced the concept of subsites. This feature builds upon the well know and thouroughly tested feature of multi language sites. The drawback: for subsites $sl doesn't hold an ISO-639-1 language code. So plugin authors should neither rely on strlen($sl)==2 nor on $sl being a true ISO 639-1 language code. If your plugin is not able to cater for the new situation, it should be enough to document, that it can't be used with the new subsite feature. Probably only a minority of CMSimple_XH installations will use subsites. |
+ | Since CMSimple_XH 1.6 the subsites feature has been removed, and strlen($sl) == 2 is guaranteed again. Usually $sl will hold an [[http://en.wikipedia.org/wiki/ISO_639-1|ISO 639-1 language code]]. | ||
===== Deprecated Functions ===== | ===== Deprecated Functions ===== | ||