cvs: phpweb /include shared-manual.inc

From: Date: Mon, 21 Apr 2003 19:10:03 +0000
Subject: cvs: phpweb /include shared-manual.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-16860@lists.php.net to get a copy of this message
goba Mon Apr 21 15:10:03 2003 EDT Modified files: /phpweb/include shared-manual.inc Log: Let the XSL sheets be happy with different parameter order (this code can be removed if XSL sheets are used exclusively for phpweb file generation) Index: phpweb/include/shared-manual.inc diff -u phpweb/include/shared-manual.inc:1.173 phpweb/include/shared-manual.inc:1.174 --- phpweb/include/shared-manual.inc:1.173 Sun Mar 2 11:26:47 2003 +++ phpweb/include/shared-manual.inc Mon Apr 21 15:10:03 2003 @@ -269,9 +269,21 @@ header("Content-language: $lang"); } -// Print out manual page header -function manualHeader($title,$id="") { +// Print out manual page header. +function manualHeader() +{ global $PRINT_PAGE; + + // XSL sheets provide params in [id, title] + // order, while old DSSSL sheets provide them + // in [title, id] order + $args = func_get_args(); + if (strpos($args[0], ".php") > 0) { + $id = $args[0]; $title = $args[1]; + } else { + $title = $args[0]; $id = $args[1]; + } + if ($PRINT_PAGE) { manualPrintHeader($title); } else { @@ -283,8 +295,20 @@ } // Print out manual footer -function manualFooter($title,$id="") { +function manualFooter() +{ global $PRINT_PAGE, $PRINT_NOTES; + + // XSL sheets provide params in [id, title] + // order, while old DSSSL sheets provide them + // in [title, id] order + $args = func_get_args(); + if (strpos($args[0], ".php") > 0) { + $id = $args[0]; $title = $args[1]; + } else { + $title = $args[0]; $id = $args[1]; + } + if ($PRINT_PAGE) { if ($PRINT_NOTES) { manualPrintUserNotes($title, $id);

« previous php.mirrors (#16860) next »