Skip to content

Commit 8926f4e

Browse files
committed
Use Package::compareVersion() instead of \version_compare().
1 parent 14201c8 commit 8926f4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/lib/system/exporter/WBB4xExporter.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ public function exportProfileCommentResponses($offset, $limit)
812812
*/
813813
public function countUserAvatars()
814814
{
815-
if (\version_compare($this->getPackageVersion('com.woltlab.wcf'), '6.2.0 Alpha 1', '>=')) {
815+
if (Package::compareVersion($this->getPackageVersion('com.woltlab.wcf'), '6.2.0 Alpha 1', '>=')) {
816816
$sql = "SELECT COUNT(*) as counter
817817
FROM wcf" . $this->dbNo . "_user
818818
WHERE avatarFileID IS NOT NULL";
@@ -833,7 +833,7 @@ public function countUserAvatars()
833833
*/
834834
public function exportUserAvatars($offset, $limit)
835835
{
836-
if (\version_compare($this->getPackageVersion('com.woltlab.wcf'), '6.2.0 Alpha 1', '>=')) {
836+
if (Package::compareVersion($this->getPackageVersion('com.woltlab.wcf'), '6.2.0 Alpha 1', '>=')) {
837837
$this->exportUserAvatars62($offset, $limit);
838838

839839
return;

0 commit comments

Comments
 (0)