$CFG->pixpath

$CFG->pixpath

by Олег Корчугин -
Number of replies: 2
in theme's folder in the file header.html I corrected all paths to the pictures.
from


to


The paths were changed because when a theme is set on a separate course pictures are not loaded (the links lead to a site-wide theme).

After this change it started working.
But still I wonder, what is this variable ($CFG->pixpath) for? And whether there're gonna be troubles in certain cases.

Thank you in advance )
Average of ratings: -
In reply to Олег Корчугин

Re: $CFG->pixpath

by Олег Корчугин -
from
<!--"<?рhp echo "$CFG->wwwroot/theme/$CFG->theme" ?>/pix/top_bg.gif">"-->

to
<!--"<?рhp echo "$CFG->pixpath" ?>/main_bg_left.gif">"-->
In reply to Олег Корчугин

Re: $CFG->pixpath

by Mathieu Petit-Clair -
Picture of Core developers Picture of Moodle HQ Picture of MoodleCloud team Picture of Plugin developers Picture of Testers
Two things:
* if this behaves like you said, it's a bug.. you can report it in the tracker, so that developers know about it, and fix it...
* at first look, this doesn't seem to be too dangerous a modification, but you have to be careful when you upgrade, as you might loose this modification; this is one big reason not to modify core files

Mathieu