Skip to content

Commit 0819ff9

Browse files
committed
Fix plugin upgrade page, smarty version check failed
1 parent 9873122 commit 0819ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/admin/plugins.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
}
316316
}
317317

318-
if ( !empty($plug['requirements']['smarty']) && version_compare($plug['requirements']['smarty'], str_replace('Smarty-', '', Smarty::SMARTY_VERSION), '>') ) {
318+
if ( !empty($plug['requirements']['smarty']) && version_compare($plug['requirements']['smarty'], str_replace('Smarty-', '', \Smarty\Smarty::SMARTY_VERSION), '>') ) {
319319
if (isset($requirement_failures[$plug['class_name']])) {
320320
$requirement_failures[$plug['class_name']] = array_merge($requirement_failures[$plug['class_name']] , array("smarty" => true));
321321
} else {

0 commit comments

Comments
 (0)