1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

PHP 5.4 fix.

This commit is contained in:
Cameron
2018-08-24 12:51:06 -07:00
parent 5225b129c4
commit 4ab4220093

View File

@@ -896,13 +896,13 @@ class lancheck
$feed = 'https://e107.org/languagepacks.xml'; $feed = 'https://e107.org/languagepacks.xml';
if(!empty(e_VERSION)) $version = e_VERSION;
if(!empty($version))
{ {
$feed .= "?ver=". preg_replace('/[^\d\.]/','',e_VERSION); $feed .= "?ver=". preg_replace('/[^\d\.]/','',e_VERSION);
} }
$languages = array(); $languages = array();
if($rawData = $xml -> loadXMLfile($feed, true)) if($rawData = $xml -> loadXMLfile($feed, true))