Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
c5f4624f
Commit
c5f4624f
authored
Jun 07, 2009
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#480102
by JamesAn: converted to drupal_static().
parent
709bb0a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/aggregator/aggregator.module
modules/aggregator/aggregator.module
+2
-2
No files found.
modules/aggregator/aggregator.module
View file @
c5f4624f
...
...
@@ -569,7 +569,7 @@ function aggregator_refresh($feed) {
* An object describing the feed.
*/
function
aggregator_feed_load
(
$fid
)
{
static
$feeds
;
$feeds
=
&
drupal_static
(
__FUNCTION__
)
;
if
(
!
isset
(
$feeds
[
$fid
]))
{
$feeds
[
$fid
]
=
db_query
(
'SELECT * FROM {aggregator_feed} WHERE fid = :fid'
,
array
(
':fid'
=>
$fid
))
->
fetchObject
();
}
...
...
@@ -586,7 +586,7 @@ function aggregator_feed_load($fid) {
* An associative array describing the category.
*/
function
aggregator_category_load
(
$cid
)
{
static
$categories
;
$categories
=
&
drupal_static
(
__FUNCTION__
)
;
if
(
!
isset
(
$categories
[
$cid
]))
{
$categories
[
$cid
]
=
db_query
(
'SELECT * FROM {aggregator_category} WHERE cid = :cid'
,
array
(
':cid'
=>
$cid
))
->
fetchAssoc
();
}
...
...
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