Commit 84beb258 authored by Dries's avatar Dries
Browse files

- Patch #44771 by jvandyk: small performance improvement.

parent 2e9bbda7
......@@ -409,15 +409,14 @@ function _form_sort($a, $b) {
function _element_info($type, $refresh = null) {
static $cache;
$parents = array();
$basic_defaults = array(
'#description' => NULL,
'#attributes' => array(),
'#required' => FALSE,
'#tree' => FALSE,
'#parents' => $parents
'#parents' => array()
);
if ($refresh || !isset($cache)) {
if (!isset($cache) || $refresh) {
$cache = array();
foreach (module_implements('elements') as $module) {
$elements = module_invoke($module, 'elements');
......
......@@ -361,7 +361,7 @@ function theme_pager_link($text, $page_new, $element, $parameters = array(), $at
$query[] = $key .'='. $value;
}
// Set each pager link title
// Set each pager link title
if (!isset($attributes['title'])) {
static $titles = null;
if (!isset($titles)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment