$CFG->pixpath

$CFG->pixpath

د Олег Корчугин لخوا -
د ځوابونو شمیر: 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 )
د درجې بندۍ اوسط:  -
In reply to Олег Корчугин

Re: $CFG->pixpath

د Олег Корчугин لخوا -
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

د Mathieu Petit-Clair لخوا -
د Core developers انځور د Moodle HQ انځور د MoodleCloud team انځور د Plugin developers انځور د 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