summaryrefslogtreecommitdiff
path: root/modules/aggregator
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-07 02:27:26 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-07 02:27:26 +0000
commitc5f4624fe72f2588be8e360fe7957fd47fc4795e (patch)
tree60ea0adb4987462b331e4863d20d6375c491b305 /modules/aggregator
parent709bb0a19a6a55dd409f7a5ffde2afab767599a2 (diff)
downloadbrdo-c5f4624fe72f2588be8e360fe7957fd47fc4795e.tar.gz
brdo-c5f4624fe72f2588be8e360fe7957fd47fc4795e.tar.bz2
- Patch #480102 by JamesAn: converted to drupal_static().
Diffstat (limited to 'modules/aggregator')
-rw-r--r--modules/aggregator/aggregator.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index 68e4a2380..10abde523 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -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();
}