Contents of lib/support/index.php in a multisite setup

dkgibson
dkgibson's picture

Joined: 2005-03-16
Posts: 22
Posted: Mon, 2009-08-03 07:45

When attempting to upgrade from 2.0.1 (multisite) to 2.3, the upgrade didn't create a multisite lib/support/index.php, so I created one myself ("[path]" is a path to the gallery root dir):

<?php
define('GALLERY_CONFIG_DIR', dirname(dirname(dirname(__FILE__))));
require('[path]/lib/support/index.php');
?>

Is this the correct content (note the three "dirname"s)? It seems to work ...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22890
Posted: Mon, 2009-08-03 15:54

The syntax did change from 2.01 to 2.3 so you might want to look at the G2.3 code for an example.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team