Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3780e8a6
Commit
3780e8a6
authored
Jun 05, 2009
by
webchick
Browse files
#481508
by JamesAn: Update update module to use drupal_static().
parent
c8688327
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/update/update.compare.inc
View file @
3780e8a6
...
...
@@ -30,7 +30,7 @@
* @see update_project_cache()
*/
function
update_get_projects
()
{
static
$projects
=
array
();
$projects
=
&
drupal_static
(
__FUNCTION__
,
array
()
)
;
if
(
empty
(
$projects
))
{
// Retrieve the projects from cache, if present.
$projects
=
update_project_cache
(
'update_project_projects'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment