A valid category is now: foo.bar and foo.bar.baz, everything else will be ignored. If your using a language category with 4 levels, it won't be loaded. EVER. Deal with it :)
* @param string className
* @param object options
*/
-WCF.ACP.Worker = function(dialogID, className, options) { this.init(dialogID, className, options); };
-WCF.ACP.Worker.prototype = {
+WCF.ACP.Worker = Class.extend({
/**
* dialog id
* @var string
this._dialog.wcfDialog('render');
}
}
-};
+});
/**
* Namespace for category-related functions.
return $item;
}
- // attempt to load all categories beginning with the most specific
- if (isset($explodedItem[4])) {
- $this->loadCategory($explodedItem[0].'.'.$explodedItem[1].'.'.$explodedItem[2].'.'.$explodedItem[3]);
- }
+ // attempt to load the most specific category
if (isset($explodedItem[3])) {
$this->loadCategory($explodedItem[0].'.'.$explodedItem[1].'.'.$explodedItem[2]);
}