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

From: Date: Sun, 16 Mar 2014 18:33:28 +0000
Subject: com web/doc: Nav generation simplified: include/lib_general .inc.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2306@lists.php.net to get a copy of this message
Commit: 8e7485ece693d7c57639a30f819d63e9719e818a Author: Sobak <msobaczewski@gmail.com> 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())

« previous php.doc.web (#2306) next »