diff options
author | Andreas Gohr <andi@splitbrain.org> | 2022-07-02 13:31:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-02 13:31:41 +0200 |
commit | a57f7556c06042ef2afe2f26ff16a0abd6d38aa5 (patch) | |
tree | 2c2f29d51a0a168eedca290f67e174ce17af89ab | |
parent | baa301e28478688cde18d4ec54025b65af1745cd (diff) | |
parent | a8ac20ea5ccd0d3ea5ef97a8975ddffc4bcf4cb5 (diff) | |
download | dokuwiki-a57f7556c06042ef2afe2f26ff16a0abd6d38aa5.tar.gz dokuwiki-a57f7556c06042ef2afe2f26ff16a0abd6d38aa5.zip |
Merge pull request #3703 from splitbrain/functionexists
use function_exists and a string in check if zlib_decode exists
-rw-r--r-- | inc/infoutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index 6c61d037e..f89d1b3bb 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -89,7 +89,7 @@ function getVersionData(){ $subDir = substr($headCommit, 0, 2); $fileName = substr($headCommit, 2); $gitCommitObject = DOKU_INC . ".git/objects/$subDir/$fileName"; - if (file_exists($gitCommitObject) && method_exists(zlib_decode)) { + if (file_exists($gitCommitObject) && function_exists('zlib_decode')) { $commit = zlib_decode(file_get_contents($gitCommitObject)); $committerLine = explode("\n", $commit)[3]; $committerData = explode(' ', $committerLine); |