Re: UnfoldSubpages plugin

Stefan <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
as the messages told you the var $page is not defined.

look at IncludePage.php at line 62 and 64

replace
        if ($page) {
with
        if (isset($page) && $page) {

replace
        if (!$page or !$page->name)
with
        if (!isset($page) or !$page or !$page->name)

maybe not the best fix but it should work...
Regards Stefan

Sabri LABBENE schrieb:
> Hi all,
>
> I'm trying to get my unfoldSubpages plugin working in my phpwiki-1.3.12. I upgraded these files to the latest cvs version.
>
> - lib/plugin/UnfoldSubpages.php
> - lib/plugin/IncludePage.php
> - lib/WikiPlugin.php
>
> The plugin worked but it still show a notice after saving the page:
>
> lib/plugin/IncludePage.php:62: Notice: Undefined variable 'page'.
> lib/plugin/IncludePage.php:64: Notice: Undefined variable 'page'.
>
> Not sure this var was created by previous extract() (line 60).
>
> Does any body know how to remove this notice ?
>
>
> Thanks,
> --Sabri.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Phpwiki-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/phpwiki-talk
>
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.