Core  3.2
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  * @package FDL
5 */
6 /**
7  * Incorporate scripts for extjs
8  *
9  * @author Anakeen
10  * @version $Id: $
11  * @package FDL
12  */
13 /**
14  */
15 
17 {
18  $debug = $action->getArgument("debug");
19  $action->lay->eset("debug", $debug);
20  $lang = strtolower(strtok($action->getParam("CORE_LANG") , "_"));
21 
22  if (file_exists(sprintf("%s/lib/ext/src/locale/ext-lang-%s.js", DEFAULT_PUBDIR, $lang))) {
23  $action->lay->eset("lang", $lang);
24  } else {
25  $action->lay->set("lang", false);
26  }
27 }
28 ?>
global $action
$lang
Definition: lang.php:18
addextscript(Action &$action)
const DEFAULT_PUBDIR
Definition: Lib.Prefix.php:28
getParam($name, $def="")
static getArgument($k, $def= '')
← centre documentaire © anakeen