mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:01:18 +08:00
Someone broke/disabled? the php check
This commit is contained in:
@ -465,7 +465,7 @@ class ImportScripts::Smf2 < ImportScripts::Base
|
||||
private
|
||||
|
||||
def get_php_timezone
|
||||
phpinfo, status = Open3.capture2('phpnope', '-i')
|
||||
phpinfo, status = Open3.capture2('php', '-i')
|
||||
phpinfo.lines.each do |line|
|
||||
key, *vals = line.split(' => ').map(&:strip)
|
||||
break vals[0] if key == 'Default timezone'
|
||||
|
Reference in New Issue
Block a user