[pmwiki-users] user-customisation of edit form
Hans
design at flutesong.fsnet.co.uk
Sat Jul 23 04:46:17 CDT 2005
Friday, July 22, 2005, 8:02:35 PM, Patrick wrote:
> So perhaps a better solution is for the skin to
> follow PmWiki's update model, by creating a PageStore specifically
> for the skin's distributed pages and placing that store into
> $WikiLibDirs. A brute-force approach to this would be to do
> something like the following in skin.php:
> global $WikiLibDirs, $WikiDir, $SkinDir;
> $WikiLibDirs = array(&$WikiDir,
> new PageStore("$SkinDir/wiki.d/\$FullName"),
> new PageStore("$FarmD/wikilib.d/\$FullName"));
This works fine, but the following does not:
> global $WikiLibDirs, $SkinDir;
> $where = count($WikiLibDirs)
> if ($where>1) $where--;
> array_splice($WikiLibDirs, $where, 0,
> new PageStore("$SkinDir/wiki.d/\$FullName"));
Parse error: syntax error, unexpected T_IF in [....] skin.php
is there a ; missing in the second line?
I added it:
$where = count($WikiLibDirs);
and now get this error:
Fatal error: Call to a member function exists() on a non-object in
[...]\pmwiki.php on line 645
(line 645 is in function: PageExists )
Best,
~Hans
More information about the pmwiki-users
mailing list