mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 21:01:33 +08:00
Someone broke/disabled? the php check
This commit is contained in:
parent
7e27559f3e
commit
6168bcb4c4
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue