start:overrides
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| start:overrides [2026/02/08 19:27] – [Customcripts] admin | start:overrides [2026/02/08 21:23] (Version actuelle) – [Customcripts] admin | ||
|---|---|---|---|
| Ligne 36: | Ligne 36: | ||
| | | ||
| - | In your config file, then any request to a php script say: '' | + | In your config file, then any request to a php script say: '' |
| + | |||
| + | Customscripts MUST NOT include '' | ||
| + | |||
| + | By ending the customscript by a '' | ||
| + | |||
| + | Customscripts MUST NOT redefine classes, functions or any " | ||
| + | |||
| + | ===Good cases=== | ||
| + | |||
| + | Customscripts work fine when the change is very superficial, | ||
| + | |||
| + | ===Less good cases=== | ||
| + | |||
| + | When the change is deeper, customscripting will force you to deroute deeper calls to derouted APIs, so the code path may need a lot of work to reach the changing point. | ||
| + | |||
| + | Too complicated derouting will lead to replacing a LOT of standard code. As the standard code is occulted in your Moodle, it will not reveal upgrades or bugfixes, so your replaced code will diverge slowly from moodle standard state of the art. this can be problematic. | ||
| ====Core patchs==== | ====Core patchs==== | ||
start/overrides.1770578839.txt.gz · Dernière modification : de admin
