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