$CFG->pixpath

$CFG->pixpath

Олег Корчугин írta időpontban
Válaszok szám: 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 )
Értékelések átlaga: -
Válasz erre: Олег Корчугин

Re: $CFG->pixpath

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

to
<!--"<?рhp echo "$CFG->pixpath" ?>/main_bg_left.gif">"-->
Válasz erre: Олег Корчугин

Re: $CFG->pixpath

Mathieu Petit-Clair írta időpontban
Kép Kép Kép Kép Kép
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