Hi All!
> Modified Files:
> Tag: branch-0-6
I guess we're having synch problems because of having branch_0_6 and branch-0-6.
The last one was making problems for me on the release day (don't remember
which, but I couldn't check that branch out) so I created the branch_0_6 and
modified files there.
Joseph seems to have modified files in the other branch. I don't know how to
remove a branch nor how to easily synch those two branches and stick to
branch-0-6 instead. Does anyone have some spare time to correct those issues and
merge the changes in one singular branch?
There are a couple of other outstanding bugs both on the mailinglist and on the
forums, I will try to take care of them tomorrow if I find some time. At least I
can confirm Sebastian's cateogires bug with 0.6.1.
Joseph, I though of this solution on the installer:
> switch ($optname) {
> case 'serendipityPath':
> - return $_SERVER['DOCUMENT_ROOT'] .
> rtrim(dirname($_SERVER['PHP_SELF']), '/') . '/';
> + #This doesn't work if the blog isn't in the DOCUMENT_ROOT: return
> $_SERVER['DOCUMENT_ROOT'] . rtrim(dirname($_SERVER['PHP_SELF']), '/') . '/';
> + return dirname(__FILE__) . '/';
We could make it like this:
switch ($optname) {
case 'serendipityPath':
$path1 = $_SERVER['DOCUMENT_ROOT'] .
rtrim(dirname($_SERVER['PHP_SELF']), '/') . '/';
$path2 = dirname(__FILE__);
if (file_exists($path1 . 'serendipity_entries.php')) {
return $path1;
} else {
return $path2;
}
So we check first if files exist in the preferred "real" directory (not the
possible shared libary path) and only if that doesn't exist, we return the real
path of our filename. So we could save one additional variable, and if the
variable fails for both cases, you can always edit it in the installer...?
Regards,
Garvin.
|