/**
  * Set global variables for javascript
  */
 public static function onMakeGlobalVariablesScript(array &$vars)
 {
     $wg = F::app()->wg;
     $vars['wgCategorySelect'] = array('defaultNamespace' => $wg->ContLang->getNsText(NS_CATEGORY), 'defaultNamespaces' => CategoryHelper::getDefaultNamespaces(), 'defaultSeparator' => trim(wfMessage('colon-separator')->escaped()), 'defaultSortKey' => $wg->Parser->getDefaultSort() ?: $wg->Title->getText());
     return true;
 }