Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
addextscript.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Incorporate scripts for extjs
9  *
10  * @author Anakeen 2006
11  * @version $Id: $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  */
15 /**
16  */
17 
19 {
20  $debug = $action->getArgument("debug");
21  $action->lay->set("debug", $debug);
22  $lang = strtolower(strtok($action->getParam("CORE_LANG") , "_"));
23 
24  if (file_exists(sprintf("%s/lib/ext/src/locale/ext-lang-%s.js", DEFAULT_PUBDIR, $lang))) {
25  $action->lay->set("lang", $lang);
26  } else {
27  $action->lay->set("lang", false);
28  }
29 }
30 ?>
← centre documentaire © anakeen - published under CC License - Dynacase