Explorar o código

Implemented fix suggested in Issue 823 - Add DOCUMENT_ROOT to require_once path on domain edit [and contacts_vcard.php, and save_switch_xml() function].

Nate Jones %!s(int64=10) %!d(string=hai) anos
pai
achega
2dad940811
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contacts_vcard.php

+ 1 - 1
contacts_vcard.php

@@ -199,7 +199,7 @@ if (count($_GET)>0) {
 			}
 
 			//include
-				require_once PROJECT_PATH."resources/qr/qrcode.php";
+				require_once $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/qr/qrcode.php";
 
 			//error correction level
 				//QR_ERROR_CORRECT_LEVEL_L : $e = 0;