]> git.mjollnir.org Git - moodle.git/commit
In the missing mode, substr() function introduced in MDL-8184 patch is now replaced...
authormudrd8mz <mudrd8mz>
Sun, 11 Mar 2007 22:41:56 +0000 (22:41 +0000)
committermudrd8mz <mudrd8mz>
Sun, 11 Mar 2007 22:41:56 +0000 (22:41 +0000)
commit8442e013944ab3bbc47e9f6b0189945f1b73d8da
treeeae4aeed1796c86c9f5ffb5d341554792e50e707
parent702cf10b01a8677d984f123bb4b20d504fc337bd
In the missing mode, substr() function introduced in MDL-8184 patch is now replaced by lang_xhtml_save_substr(). Fixes MDL-8852.

There was a problem with pure substr() which could possibly produce XHTML parsing error - see an example:
   substr('Marks &amp; Spencer', 0, 9) -> 'Marks &am' ... is not XHTML compliance
The new function takes care of HTML entities during cutting the string.
admin/lang.php