CRM-14091 - Change URLs for doc links
authorTim Otten <totten@civicrm.org>
Wed, 5 Feb 2014 19:25:32 +0000 (11:25 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 5 Feb 2014 19:25:32 +0000 (11:25 -0800)
----------------------------------------
* CRM-14091:
  http://issues.civicrm.org/jira/browse/CRM-14091

CRM/Utils/Check/Security.php

index 33c909874c09785d18592d39d87cb071a6e71a3d..739006344333f128386ba5eb03b1afa8274091c0 100644 (file)
@@ -152,7 +152,7 @@ class CRM_Utils_Check_Security {
       if ($log_path = explode($filePathMarker, $log_filename)) {
         $url[] = $log_path[1];
         $log_url = implode($filePathMarker, $url);
-        $docs_url = 'http://wiki.civicrm.org/confluence/display/CRMDOC/Security/LogNotAccessible';
+        $docs_url = $this->createDocUrl('checkLogFileIsNotAccessible');
         if ($log = @file_get_contents($log_url)) {
           $msg = 'The <a href="%1">CiviCRM debug log</a> should not be downloadable.'
             . '<br />' .
@@ -195,8 +195,8 @@ class CRM_Utils_Check_Security {
             if ($file = @file_get_contents($url)) {
               $msg = 'Files in the upload directory should not be downloadable.'
                 . '<br />' .
-                '<a href="%2">Read more about this warning</a>';
-              $docs_url = 'http://wiki.civicrm.org/confluence/display/CRMDOC/Security/UploadDirNotAccessible';
+                '<a href="%1">Read more about this warning</a>';
+              $docs_url = $this->createDocUrl('checkUploadsAreNotAccessible');
               $messages[] = ts($msg, array(1 => $docs_url));
             }
           }
@@ -257,7 +257,7 @@ class CRM_Utils_Check_Security {
                     $msg = 'Directory <a href="%1">%2</a> may be browseable via the web.'
                       . '<br />' .
                       '<a href="%3">Read more about this warning</a>';
-                    $docs_url = 'http://wiki.civicrm.org/confluence/display/CRMDOC/Security/UploadDirNotAccessible';
+                    $docs_url = $this->createDocUrl('checkDirectoriesAreNotBrowseable');
                     $messages[] = ts($msg, array(1 => $log_url, 2 => $path, 3 => $docs_url));
                   }
                 }
@@ -271,4 +271,7 @@ class CRM_Utils_Check_Security {
     return $messages;
   }
 
+  public function createDocUrl($topic) {
+    return CRM_Utils_System::getWikiBaseURL() . $topic;
+  }
 }