@@ 156-174 (lines=19) @@ | ||
153 | $message); |
|
154 | } |
|
155 | ||
156 | function ldSetRoot($session='', $nls='') { |
|
157 | global $store, $AR, $ARCurrent, $root, $rootoptions; |
|
158 | ||
159 | $root=$AR->root; |
|
160 | $rootoptions=""; |
|
161 | if ($session) { |
|
162 | $rootoptions.="/-".$session."-"; |
|
163 | $ARCurrent->session->id=$session; |
|
164 | } |
|
165 | if ($nls) { |
|
166 | $rootoptions.="/$nls"; |
|
167 | $ARCurrent->nls=$nls; |
|
168 | } |
|
169 | $root.=$rootoptions; |
|
170 | if ($store) { // loader.php uses this function before the store is initialized. |
|
171 | $store->root=$root; |
|
172 | $store->rootoptions=$rootoptions; |
|
173 | } |
|
174 | } |
|
175 | ||
176 | function ldSetNls($nls) { |
|
177 | global $ARCurrent; |
@@ 231-249 (lines=19) @@ | ||
228 | ||
229 | ||
230 | ||
231 | function ldSetRoot($session='', $nls='') { |
|
232 | global $store, $AR, $ARCurrent, $root, $rootoptions; |
|
233 | ||
234 | $root=$AR->root; |
|
235 | $rootoptions=""; |
|
236 | if ($session && !$AR->hideSessionIDfromURL) { |
|
237 | $rootoptions.="/-".$session."-"; |
|
238 | $ARCurrent->session->id=$session; |
|
239 | } |
|
240 | if ($nls) { |
|
241 | $rootoptions.="/$nls"; |
|
242 | $ARCurrent->nls=$nls; |
|
243 | } |
|
244 | $root.=$rootoptions; |
|
245 | if ($store) { // loader.php uses this function before the store is initialized. |
|
246 | $store->root=$root; |
|
247 | $store->rootoptions=$rootoptions; |
|
248 | } |
|
249 | } |
|
250 | ||
251 | function ldSetNls($nls) { |
|
252 | global $ARCurrent, $ARnls; |