Elgg  Version 2.3
requirements.php
Go to the documentation of this file.
1 <?php
9 if ($vars['num_failures'] != 0) {
10  $instruct_text = elgg_echo('install:requirements:instructions:failure');
11 } elseif ($vars['num_warnings'] != 0) {
12  $instruct_text = elgg_echo('install:requirements:instructions:warning');
13 } else {
14  $instruct_text = elgg_echo('install:requirements:instructions:success');
15 }
16 
17 echo elgg_autop($instruct_text);
18 
19 $report = $vars['report'];
20 foreach ($report as $category => $checks) {
21  $title = elgg_echo("install:require:$category");
22  echo "<h3>$title</h3>";
23  echo "<ul class=\"elgg-require-$category\">";
24  foreach ($checks as $check) {
25  echo "<li class=\"{$check['severity']}\">";
26  echo elgg_autop($check['message']);
27  echo "</li>";
28  }
29  echo "</ul>";
30 }
31 
32 $vars['refresh'] = true;
33 
34 // cannot advance to next step with a failure
35 if ($vars['num_failures'] != 0) {
36  $vars['advance'] = false;
37 }
38 
39 echo elgg_view('install/nav', $vars);
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$report
$title
Definition: save.php:22
elgg_autop($string)
Create paragraphs from text with line spacing.
Definition: output.php:46
elgg echo
Translates a string.
Definition: languages.js:48
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
foreach($report as $category=> $checks) $vars['refresh']