Просмотр исходного кода

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 10 лет назад
Родитель
Сommit
2dad940811
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      contacts_vcard.php

+ 1 - 1
contacts_vcard.php

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