There is a problem due to the fact that "require_once" is not unified, and the page may not be displayed correctly.

There is a problem due to the fact that "require_once" is not unified, and the page may not be displayed correctly.

by 和宏 近藤 -
Number of replies: 1

Example

[course / index.php]
`` `
require_once (".. / config.php");
require_once ($ CFG-> dirroot. '/course/lib.php');
`` `

[course / edit.php]
`` `
require_once ('.. / config.php');
require_once ('lib.php');
require_once ('edit_form.php');
`` `

Expected ways of writing, I think the following etc. properly.
`` `
require_once ($ CFG-> dirroot. '/course/../ config.php');
require_once ($ CFG-> dirroot. '/course/lib.php');
require_once ($ CFG -> dirroot. '/course/edit_form.php');
`` `


It seems not to be good as it is different from the current state.
I hope to reach moodle developers.
I hope to be unified.


Average of ratings: Useful (1)