CRM_Utils_Hook::hooks - Prettify
[civicrm-core.git] / CRM / Utils / System.php
index 8079cec6f2d61e3c40eeb88c438a2dbbeb6c3210..3ded33fe199cefa353ac9c4ac4ba72585e5e3c20 100644 (file)
@@ -1391,7 +1391,7 @@ class CRM_Utils_System {
    * @return mixed
    */
   public static function formatDocUrl($url) {
-    return preg_replace('#^user/((\w\w/)?stable/)?#', 'user/en/stable/', $url);
+    return preg_replace('#^user/((\w\w/)?(stable|current)/)?#', 'user/en/stable/', $url);
   }
 
   /**