Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Attempt to support higher than 3.3.0

  • Loading branch information...
commit 9760ec8e2432438ef8f6308b0784bf6666e5f5b8 1 parent 44ca986
@dslack authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 phploader/loader.php
View
13 phploader/loader.php
@@ -378,7 +378,10 @@ function YAHOO_util_Loader(
$this->apcAvail = function_exists('apc_fetch');
$this->jsonAvail = function_exists('json_encode');
$this->customModulesInUse = empty($modules) ? false : true;
+
+ //base will be null for 3.4.0 and higher
$this->base = $yui_current[YUI_BASE];
+
$this->comboDefaultVersion = $yuiVersion;
$this->fullCacheKey = null;
$cache = null;
@@ -402,7 +405,11 @@ function YAHOO_util_Loader(
if ($noYui) {
$this->modules = array();
} else {
+ //moduleInfo is null
$this->modules = $yui_current['moduleInfo'];
+ if (is_null($this->modules)) {
+ $this->modules = $yui_current;
+ }
}
if ($modules) {
@@ -411,8 +418,12 @@ function YAHOO_util_Loader(
);
}
+ //skin will be null for 3.4.0 and higher
$this->skin = $yui_current[YUI_SKIN];
- $this->skin['overrides'] = array();
+ if (!is_null($this->skin)) {
+ $this->skin['overrides'] = array();
+ }
+
$this->skin[YUI_PREFIX] = "skin-";
$this->filters = array(
YUI_RAW => array(
Please sign in to comment.
Something went wrong with that request. Please try again.