Browse Source

$this is a syntax error when using static classes (#5264)

Luis Daniel Lucio Quiroz 5 năm trước cách đây
mục cha
commit
c93d27f860
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/software/resources/classes/software.php

+ 1 - 1
core/software/resources/classes/software.php

@@ -19,7 +19,7 @@ if (!class_exists('software')) {
 		 * numeric_version
 		 */
 		public static function numeric_version() {
-			$v = explode('.', $this->version());
+			$v = explode('.', software::version());
 			$n = ($v[0] * 10000 + $v[1] * 100 + $v[2]);
 			return $n;
 		}