update orderinterpreter
This commit is contained in:
parent
1f97fcef40
commit
fbb1e53362
|
@ -88,7 +88,6 @@ class OrderInterpreter extends Wizard
|
|||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param boolean $must_run Must run or not.
|
||||
* @param string $ajax_controller Controller.
|
||||
*
|
||||
* @return object
|
||||
|
@ -135,11 +134,22 @@ class OrderInterpreter extends Wizard
|
|||
if ($text !== '') {
|
||||
echo '<div id="result_order" class="show_result_interpreter">';
|
||||
echo '<ul>';
|
||||
|
||||
if (io_safe_output($text) === __('GO TO ')) {
|
||||
foreach ($this->pages_name as $key => $value) {
|
||||
if (preg_match('/.*'.$text.'.*/i', $value)) {
|
||||
echo '<li>';
|
||||
echo '<img src="http://localhost/pandora_console/images/arrow_right_green.png">';
|
||||
echo 'GO TO <a href="'.$this->pages_url[$key].'">'.$value.'</a><br>';
|
||||
echo '
|
||||
<a href="'.$this->pages_url[$key].'">'.$value.'</a><br>';
|
||||
}
|
||||
} else {
|
||||
foreach ($this->pages_name as $key => $value) {
|
||||
if (preg_match('/.*'.io_safe_output($text).'.*/i', __('GO TO '.$value))) {
|
||||
echo '<li>';
|
||||
echo '<img src="http://localhost/pandora_console/images/arrow_right_green.png">';
|
||||
echo '
|
||||
<a href="'.$this->pages_url[$key].'">'.$value.'</a><br>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue