How to reload $globals['base_url']?
tom-a-spol-sro - May 21, 2009 - 08:15
Hello :)
Well, the question is in the title. The reason why I'm asking is that I moved my site and the smileys module inserts the smiley img tags with an old src. In code, there is:
<?php
$chunk = eregi_replace("([ ,\.\?!:\(\)\r\n\<\>])". preg_quote($a) ."([ ,\.\?!:\(\)\r\n\<\>])", "\\1<img src=\"". check_url($GLOBALS['base_url'] .'/'. $smiley->image) ."\" title=\"". check_plain($alt) ."\" alt=\"". check_plain($alt) ."\" class=\"smiley-content\"/>\\2", $chunk);
?>I guess that Drupal has somewhere cached the old base url, so it is bit messed. Also, maybe it is saved in a database and I have to change it. I really don't know.
Any suggestions?
Thanks for your replies,
Tom.
