nlopess Sun May 2 05:57:25 2004 EDT
Modified files:
/livedocs livedoc.php
Log:
just move funxtion index handling to the begining to fix a bug
http://cvs.php.net/diff.php/livedocs/livedoc.php?r1=1.98&r2=1.99&ty=u
Index: livedocs/livedoc.php
diff -u livedocs/livedoc.php:1.98 livedocs/livedoc.php:1.99
--- livedocs/livedoc.php:1.98 Sat May 1 15:58:13 2004
+++ livedocs/livedoc.php Sun May 2 05:57:25 2004
@@ -18,7 +18,7 @@
// | Generate an HTML version of a phpdoc/docbook page on the fly |
// +----------------------------------------------------------------------+
//
-// $Id: livedoc.php,v 1.98 2004/05/01 19:58:13 nlopess Exp $
+// $Id: livedoc.php,v 1.99 2004/05/02 09:57:25 nlopess Exp $
define('LIVEDOC_SOURCE', dirname(__FILE__));
include LIVEDOC_SOURCE . '/common.php';
@@ -27,6 +27,21 @@
include LIVEDOC_SOURCE . '/handlers.php';
include LIVEDOC_SOURCE . '/themes/' . THEME_NAME . '/html_format.php';
+$date = gmdate('Y-m-d H:i:s') . ' GMT';
+
+if (isset($_GET['i'])) {
+ // Loading title and navigation data
+ $current_page = 'indexes';
+ list($title, $filename, $fileid, $dirid) = do_nav($idx, $fb_idx, $lang,
$current_page, $nav, $children);
+
+ echo manual_page_header();
+ handle_index();
+ $filename = 'index';
+ $file_revision = '1.1';
+ echo manual_page_footer();
+ exit;
+}
+
if (!isset($_GET['q'])) {
// Handles the 404. If a matching page is found, we redirect to it.
// Else, we display a page with the closest matches and we stop the script.
@@ -37,9 +52,6 @@
$current_page = preg_replace(IDREG, '', $_GET['q']);
}
-
-$date = gmdate('Y-m-d H:i:s') . ' GMT';
-
/*****************************************************************************
* Aliases and XML -> style mapping
* Please keep the arrays sorted by keys
@@ -66,19 +78,6 @@
'indexes' => 'handle_index'
);
-if (isset($_GET['i'])) {
- // Loading title and navigation data
- $current_page = 'indexes';
- list($title, $filename, $fileid, $dirid) = do_nav($idx, $fb_idx, $lang,
$current_page, $nav, $children);
-
- echo manual_page_header();
- handle_index();
- $filename = 'index';
- $file_revision = '1.1';
- echo manual_page_footer();
- exit;
-}
-
/*****************************************************************************
* Handle some special pages in a special way with special code
*/