[pmwiki-users] New: Flexible Hg Breadcrumbs & Pagenames
Hans
design5 at softflow.co.uk
Sun Mar 18 15:24:51 CDT 2007
Sunday, March 18, 2007, 8:05:38 PM, Hans wrote:
> just testing, and getting error:
> Warning: Missing argument 1 for hgBreadCrumb()
function hgBreadCrumb($group,$name) { ...
Looking at it neither $group nor $name are used inside the function.
Since they are not used, and no argument is provided when calling the
function, you might as well leave it empty:
function hgBreadCrumb() {...
or perhaps pass on the $pagename from the markup:
Markup('hgbreadcrumb', '>var', '/\\(:breadcrumb:\\)/e', "hgBreadCrumb($pagename)");
function hgBreadCrumb($pagename) { ....
you don't need the global $pagename.
Hans
More information about the pmwiki-users
mailing list