本文整理匯總了PHP中module_config::check_for_upgrades方法的典型用法代碼示例。如果您正苦於以下問題:PHP module_config::check_for_upgrades方法的具體用法?PHP module_config::check_for_upgrades怎麽用?PHP module_config::check_for_upgrades使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類module_config
的用法示例。
在下文中一共展示了module_config::check_for_upgrades方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _e
ucm.upgrade.check_for_updates();
});
} else {
alert('Upgrade javascript failed to load. Please report this issue to support for assistance.');
}
</script>
<input type="button" name="install_upgrade" value="<?php
_e('Start the Upgrade');
?>
"
id="upgrade_start" class="submit_button save_button">
<?php
} else {
// check for any available upgrades on the internet.
$available_updates = module_config::check_for_upgrades();
if (isset($available_updates['message'])) {
echo $available_updates['message'];
}
if ($available_updates && isset($available_updates['plugins']) && count($available_updates['plugins'])) {
$x = 0;
$errors = array();
?>
<form action="" method="post">
We found <?php
count($available_updates['plugins']);
?>
available updates! <br>
<!-- This will upgrade your system from version <?php
echo module_config::current_version();