[pmwiki-users] user-customisation of edit form

Patrick R. Michaud pmichaud at pobox.com
Sat Jul 23 09:56:48 CDT 2005


On Sat, Jul 23, 2005 at 10:46:17AM +0100, Hans wrote:
> 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"));

Ah yes, I forgot the semicolon and that the last argument to
array_splice has to be an array.  Thus:

    global $WikiLibDirs, $SkinDir;
    $where = count($WikiLibDirs);
    if ($where>1) $where--;
    array_splice($WikiLibDirs, $where, 0, 
      array(new PageStore("$SkinDir/wiki.d/\$FullName")));

Thanks!

Pm




More information about the pmwiki-users mailing list