SF Bug #3391046 - Loading entries with many attributes is very slow
This commit is contained in:
parent
4089ffa9fe
commit
059b83befb
@ -97,6 +97,9 @@ class PageRender extends Visitor {
|
||||
|
||||
$this->visit('',$attribute);
|
||||
}
|
||||
|
||||
// Sort our attribute values for display.
|
||||
$this->template->sort();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1563,5 +1563,9 @@ class Template extends xmlTemplate {
|
||||
public function isNoLeaf() {
|
||||
return $this->noleaf;
|
||||
}
|
||||
|
||||
public function sort() {
|
||||
usort($this->attributes,'sortAttrs');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -447,9 +447,6 @@ abstract class xmlTemplate {
|
||||
else
|
||||
debug_dump_backtrace(sprintf('There was a request to add an attribute (%s), but it was already defined? (%s)',$attrid,__METHOD__),true);
|
||||
|
||||
if ($this->getID() == 'none')
|
||||
usort($this->attributes,'sortAttrs');
|
||||
|
||||
return $attribute;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user