Author: jfthomps
Date: Tue Aug 10 18:02:24 2010
New Revision: 984149

URL: http://svn.apache.org/viewvc?rev=984149&view=rev
Log:
VCL-314
change Documentation link to have links to ASF docs

conf-default.php: added DOCUMENTATIONURL

utils.php: modified getNavMenu - for the Documentation link, just use 
DOCUMENTATIONURL to point to ASF VCLDOCS wiki by default instead of having 
internal documentation; using DOCUMENTATIONURL allows sites to easily point to 
their own documentation instead

Modified:
    incubator/vcl/trunk/web/.ht-inc/conf-default.php
    incubator/vcl/trunk/web/.ht-inc/utils.php

Modified: incubator/vcl/trunk/web/.ht-inc/conf-default.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/conf-default.php?rev=984149&r1=984148&r2=984149&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/conf-default.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/conf-default.php Tue Aug 10 18:02:24 2010
@@ -75,6 +75,8 @@ define("PRIV_CACHE_TIMEOUT", 15); // tim
 define("MIN_BLOCK_MACHINES", 5);
 /// defines the max number of block request machines
 define("MAX_BLOCK_MACHINES", 70);
+/// defines the URL used for the Documentation link in the navigation list
+define("DOCUMENTATIONURL", "https://cwiki.apache.org/VCLDOCS/";);
 
 $ENABLE_ITECSAUTH = 0;     // use ITECS accounts (also called "Non-NCSU" 
accounts)
 

Modified: incubator/vcl/trunk/web/.ht-inc/utils.php
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/utils.php?rev=984149&r1=984148&r2=984149&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/utils.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/utils.php Tue Aug 10 18:02:24 2010
@@ -8632,7 +8632,7 @@ function getNavMenu($inclogout, $inchome
                in_array("nodeAdmin", $user["privileges"]) ||
                in_array($user['id'], $docreaders)) {
                $rt .= menulistLI('codeDocumentation');
-               $rt .= "<a href=\"" . BASEURL . SCRIPT . "?mode=viewdocs\">";
+               $rt .= "<a href=\"" . DOCUMENTATIONURL . "\">";
                $rt .= "Documentation</a></li>\n";
        }
        if($inclogout) {


Reply via email to