|
From: Stefan <son...@ba...> - 2007-09-25 14:35:47
|
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
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpwiki-talk
>
>
>
|