CRM_Utils_System - Allow docURL functions to support "sysadmin" and "dev" links
authorTim Otten <totten@civicrm.org>
Thu, 18 Apr 2019 17:30:35 +0000 (10:30 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 18 Apr 2019 17:45:18 +0000 (10:45 -0700)
CRM/Utils/System.php

index 1ac8d03d0be294cc14ffbf11bf05597ab8051e4e..0aa8fe3e67d54ed0ed5714d9cda3291d120f33e9 100644 (file)
@@ -1385,7 +1385,7 @@ class CRM_Utils_System {
    * @return mixed
    */
   public static function formatDocUrl($url) {
-    return preg_replace('#^user/#', 'user/en/stable/', $url);
+    return preg_replace('#^(user|sysadmin|dev)/#', '\1/en/stable/', $url);
   }
 
   /**