|
From: Sabri L. <sab...@st...> - 2007-09-26 08:28:22
|
Stefan wrote:
>as the messages told you the var $page is not defined.
I thought that may be $page is needed and this could have an impact on the
plugin.
>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...
Thank you. It works.
Best Regards,
-- Sabri LABBENE.
>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
>>
>>
>>
>
>
>---------------------------------------------------------------
>----------
>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
>
|