X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/8244506c761b51462c557f41e92694ea76c380d3..1066fd240bd13bd8cd475c4f8c16689646694af7:/lib/functions.php?ds=sidebyside diff --git a/lib/functions.php b/lib/functions.php index d7fbe01..4736b7f 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -143,7 +143,6 @@ function jirafeau_human_size($octets) // Convert UTC timestamp to a datetime field function jirafeau_get_datetimefield($timestamp) { - $ts = date_create("@" . $timestamp); $content = '<span class="datetime" data-datetime="' . date_format($ts, 'Y-m-d H:i') . '">' . date_format($ts, 'Y-m-d H:i') . ' (GMT)</span>'; @@ -879,7 +878,7 @@ function jirafeau_fileperms($path) function jirafeau_admin_bug_report($cfg) { $out = "<fieldset><legend>" . t('REPORTING_AN_ISSUE') . "</legend>"; - $out .= "If you have a problem related to Jirafeau, please <a href='https://gitlab.com/pcanterino/Jirafeau/-/issues'>open an issue</a>, explain your problem in english and copy-paste the following content:<br/><br/><code>"; + $out .= "If you have a problem related to Jirafeau, please <a href='" . JIRAFEAU_WEBSITE . "/-/issues'>open an issue</a>, explain your problem in english and copy-paste the following content:<br/><br/><code>"; $out .= "# Jirafeau<br/>"; $out .= "- version: " . JIRAFEAU_VERSION . "<br/>"; @@ -1239,7 +1238,7 @@ function jirafeau_encrypt_file($fp_src, $fp_dst) $enc = sodium_crypto_secretstream_xchacha20poly1305_push($crypt_state, $to_enc); if (fwrite($w, $enc) === false) { - return ''; + return ''; } }