Show
Ignore:
Timestamp:
07/15/08 17:05:24 (5 months ago)
Author:
sidtheduck
Message:

+ Fix for ticket #179
+ Fixes for miscellaneous minor bugs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plog-admin/includes/install-functions.php

    r555 r560  
    304304 
    305305        $config['gallery_url'] = "http://".$_SERVER["SERVER_NAME"]. dirname(dirname($_SERVER["PHP_SELF"])); 
     306        // remove plog-admin/ from the end, if present .. is there a better way to determine the full url? 
     307        if (strpos($config['gallery_url'], "plog-admin/")) { 
     308                $config['gallery_url'] = substr($config['gallery_url'],0,strpos($config['gallery_url'], "plog-admin/")); 
     309        } 
    306310        // verify that gallery URL contains a trailing slash. if not, add one. 
    307311        if      ($config['gallery_url']{strlen($config['gallery_url'])-1} != '/'){