| | 279 | |
|---|
| | 280 | $modules_needup = module_getinfo(false, MODULE_STATUS_NEEDUPGRADE); |
|---|
| | 281 | $modules_broken = module_getinfo(false, MODULE_STATUS_BROKEN); |
|---|
| | 282 | if (count($modules_needup) || count($modules_broken)) { |
|---|
| | 283 | echo "<div class=\"warning\">"; |
|---|
| | 284 | if (count($modules_needup)) { |
|---|
| | 285 | echo "<p>"._("Warning: The following modules are disabled because they need upgrading: "); |
|---|
| | 286 | echo implode(", ",array_keys($modules_needup)); |
|---|
| | 287 | echo "</p>"; |
|---|
| | 288 | } |
|---|
| | 289 | if (count($modules_broken)) { |
|---|
| | 290 | echo "<p>"._("Warning: The following modules are disabled because they are broken: "); |
|---|
| | 291 | echo implode(", ",array_keys($modules_broken)); |
|---|
| | 292 | echo "</p>"; |
|---|
| | 293 | } |
|---|
| | 294 | echo "<p>", sprintf(dgettext("welcome page","You should go to the <a href='%s'>Module Admin</a> page to fix these.</p>"), "config.php?display=modules&type=tool"); |
|---|
| | 295 | echo "</div>"; |
|---|
| | 296 | } |
|---|
| | 297 | |
|---|