[pmwiki-users] Solved myself FW: error in AdvancedTableDirectives

Peter K.H. Gragert p.k.h.gragert at skyaccess.nl
Fri Apr 27 03:11:46 CDT 2007


Easy solution

In AdvancedTableDirectives

function AdvancedTableDirectives($name,$attr) {

  global $pagename; //<<ADD

And add on  all three FmtPageName $pagename as a second parameter

;-)

   Peter

  _____  

Van: pmwiki-users-bounces at pmichaud.com
[mailto:pmwiki-users-bounces at pmichaud.com] Namens Peter K.H. Gragert
Verzonden: vrijdag 27 april 2007 9:11
Aan: pmwiki-users at pmichaud.com
Onderwerp: [pmwiki-users] error in AdvancedTableDirectives

 

Hallo ..

Three questions

First:
I just downloaded and installed AdvancedTableDirectives.php and I get a
warning: Warning: Missing argument 2 for FmtPageName(), called in
C:\WWW\xampp\htdocs\pmwiki-2.2.0_44\cookbook\AdvancedTableDirectives.php on
line 191 and defined in C:\WWW\xampp\htdocs\pmwiki-2.2.0_44\pmwiki.php on
line 678 
in  AdvandedTableDirectives.php: 
$attr = MergeClassAndAppendAttributes($attr,
FmtPageName($TableCellAttrFmt)); 

 

In pmwiki.php:
function FmtPageName($fmt, $pagename) {


Meaning the error/warnig is correct.

 

Second: 
How to find out if this is already known or discussed?

 

Three:

How to correct?

 

Peter

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070427/8aa25419/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00020.txt
Url: /pipermail/pmwiki-users/attachments/20070427/8aa25419/attachment.txt 


More information about the pmwiki-users mailing list