Make function static as it's called statically

Issue #12690, #12514

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-11-28 12:12:04 +01:00
parent b8a9b0f30d
commit 84971eaf4f

View File

@ -543,7 +543,7 @@ class ConfigFile
*
* @return string
*/
public function getDefaultTempDirectory()
public static function getDefaultTempDirectory()
{
$tmp_subdir = null;
if (! empty($GLOBALS['cfg']['TempDir']) && @is_writable($GLOBALS['cfg']['TempDir'])) {