Skip to content

Commit

Permalink
CURRENT_URL should also work if script is used outside of admidio folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasse committed Mar 28, 2017
1 parent 1a867c4 commit abc789b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adm_program/system/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
// URLS
define('ADMIDIO_URL', $g_root_path); // https://www.example.org:1234/subfolder | https://www.myproxy.com:1234/www.example.com/subfolder
define('FILE_URL', ADMIDIO_URL . $_SERVER['SCRIPT_NAME']); // https://www.example.org:1234/subfolder/adm_program/index.php
define('CURRENT_URL', ADMIDIO_URL . $_SERVER['REQUEST_URI']); // https://www.example.org:1234/subfolder/adm_program/index.php?param=value
define('CURRENT_URL', HTTPS ? 'https://' : 'http://' . HOST . $_SERVER['REQUEST_URI']); // https://www.example.org:1234/subfolder/adm_program/index.php?param=value

// FOLDERS
define('FOLDER_DATA', '/adm_my_files');
Expand Down

0 comments on commit abc789b

Please sign in to comment.