com web/doc: Nav generation simplified: include/lib_general .inc.php

[email protected]
Newsgroups php.doc.web
Message-ID <[email protected]>
Commit:    8e7485ece693d7c57639a30f819d63e9719e818a
Author:    Sobak <[email protected]>         Sun, 16 Mar 2014 16:33:51 +0100
Parents:   64ec91ea0ff984817bd771c7dfeca15632488329
Branches:  master

Link:       http://git.php.net/?p=web/doc.git;a=commitdiff;h=8e7485ece693d7c57639a30f819d63e9719e818a

Log:
Nav generation simplified

Changed paths:
  M  include/lib_general.inc.php


Diff:
diff --git a/include/lib_general.inc.php b/include/lib_general.inc.php
index 5e71f0a..299ef2b 100644
--- a/include/lib_general.inc.php
+++ b/include/lib_general.inc.php
@@ -199,18 +199,12 @@ function site_nav_provider()
    }
 
     // English only
-    if (LANGC == 'all' || LANGC == 'en') {
-
-        switch(SITE) {
-            case 'php':
-                $links['orphan-notes']     = BASE_URL . '/orphan_notes.php';
-                $links['notes-stats']      = BASE_URL . '/notes_stats.php';
-                $links['undoc-functions']  = BASE_URL . '/undoc_functions.php';
-                $links['missing-examples'] = BASE_URL . '/missing_examples.php';
-                $links['phpt-generator']   = BASE_URL . '/phpt_generator.php';
-    
-            case 'pear':
-        }
+    if ((LANGC == 'all' || LANGC == 'en') && SITE == 'php') {
+        $links['orphan-notes']     = BASE_URL . '/orphan_notes.php';
+        $links['notes-stats']      = BASE_URL . '/notes_stats.php';
+        $links['undoc-functions']  = BASE_URL . '/undoc_functions.php';
+        $links['missing-examples'] = BASE_URL . '/missing_examples.php';
+        $links['phpt-generator']   = BASE_URL . '/phpt_generator.php';
     }
 
     if (is_admin())
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.