Vylepseno (zjednoduseno) rozhrani pro assistanty
[mirrors/SokoMan.git] / index.php
index 6036ac0535b603a39b69f0b2eb5f789f536f50b7..931f06cbb582b2235467c0c3447a4dd913fe1a27 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -725,7 +725,10 @@ class Sklad_UI {
                                die('Tell me why you cry');
                                break;
                        case 'assistant': //assistant
-                               $assistant_vars['step'] = isset($PATH_CHUNKS[3]) && is_numeric($PATH_CHUNKS[3]) ? trim($PATH_CHUNKS[3]) : false;
+                               $PATH_CHUNKS[3] = isset($PATH_CHUNKS[3]) ? trim($PATH_CHUNKS[3]) : false;
+                               $assistant_vars['SUBPATH'] = array_slice($PATH_CHUNKS, 3);
+                               $assistant_vars['URL_INTERNAL'] = 'assistant/'.$PATH_CHUNKS[2];
+                               $assistant_vars['URL'] = $_SERVER['SCRIPT_NAME'].'/'.$assistant_vars['URL_INTERNAL'];
                                echo $this->safe_include(DIR_ASSISTANTS,$PATH_CHUNKS[2],$assistant_vars);
                                break;
                        default:        //?
This page took 0.113957 seconds and 4 git commands to generate.