mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
Use get_app_location func in cron_get_uri func
This commit is contained in:
parent
c64c1a441d
commit
d86191d4af
@ -211,18 +211,11 @@ function cron_index_messages() {
|
||||
/**
|
||||
* Generates cron URI
|
||||
*
|
||||
* @global string $webimroot Path of the mibew instalation from server root.
|
||||
* It defined in libs/config.php
|
||||
* @param string $cron_key Cron security key
|
||||
* @return string Cron URI
|
||||
*/
|
||||
function cron_get_uri($cron_key) {
|
||||
global $webimroot;
|
||||
|
||||
$path = (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off')
|
||||
? 'http://'
|
||||
: 'https://';
|
||||
$path .= $_SERVER['SERVER_NAME'] . $webimroot . '/cron.php';
|
||||
$path = get_app_location(true, is_secure_request()) . '/cron.php';
|
||||
$path .= empty($cron_key)
|
||||
? ''
|
||||
: '?cron_key='.$cron_key;
|
||||
|
Loading…
Reference in New Issue
Block a user