Skip to content

Commit

Permalink
Don't see why this is hardcoded to localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
rlerdorf committed Nov 16, 2005
1 parent 6ecce22 commit 60bdd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion display.php
Expand Up @@ -1621,7 +1621,7 @@ function _example(&$example) {
switch($example->type) {
case 'genimage':
$fn = tempnam("/tmp","pres2");
$img = file_get_contents("http://localhost/".$this->baseDir.$this->slideDir.$example->filename,"r");
$img = file_get_contents("http://".$_SERVER['HTTP_HOST']."/".$this->baseDir.$this->slideDir.$example->filename,"r");
$fp_out = fopen($fn,"wb");
fwrite($fp_out,$img);
fclose($fp_out);
Expand Down

0 comments on commit 60bdd8f

Please sign in to comment.