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
49304b34
Commit
49304b34
authored
May 09, 2005
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixing patch for aggregator block id fix.
parent
e4738f1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/aggregator.module
modules/aggregator.module
+3
-3
modules/aggregator/aggregator.module
modules/aggregator/aggregator.module
+3
-3
No files found.
modules/aggregator.module
View file @
49304b34
...
...
@@ -209,7 +209,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) {
}
}
else
if
(
$op
==
'configure'
)
{
list
(
$type
,
$id
)
=
split
(
'
:
'
,
$delta
);
list
(
$type
,
$id
)
=
explode
(
'
-
'
,
$delta
);
if
(
$type
==
'category'
)
{
$value
=
db_result
(
db_query
(
'SELECT block FROM {aggregator_category} WHERE cid = %d'
,
$id
));
}
...
...
@@ -221,7 +221,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) {
return
$output
;
}
else
if
(
$op
==
'save'
)
{
list
(
$type
,
$id
)
=
split
(
'
:
'
,
$delta
);
list
(
$type
,
$id
)
=
explode
(
'
-
'
,
$delta
);
if
(
$type
==
'category'
)
{
$value
=
db_query
(
'UPDATE {aggregator_category} SET block = %d WHERE cid = %d'
,
$edit
[
'block'
],
$id
);
}
...
...
@@ -230,7 +230,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) {
}
}
else
if
(
$op
==
'view'
)
{
list
(
$type
,
$id
)
=
split
(
'
:
'
,
$delta
);
list
(
$type
,
$id
)
=
explode
(
'
-
'
,
$delta
);
switch
(
$type
)
{
case
'feed'
:
if
(
$feed
=
db_fetch_object
(
db_query
(
'SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d'
,
$id
)))
{
...
...
modules/aggregator/aggregator.module
View file @
49304b34
...
...
@@ -209,7 +209,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) {
}
}
else
if
(
$op
==
'configure'
)
{
list
(
$type
,
$id
)
=
split
(
'
:
'
,
$delta
);
list
(
$type
,
$id
)
=
explode
(
'
-
'
,
$delta
);
if
(
$type
==
'category'
)
{
$value
=
db_result
(
db_query
(
'SELECT block FROM {aggregator_category} WHERE cid = %d'
,
$id
));
}
...
...
@@ -221,7 +221,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) {
return
$output
;
}
else
if
(
$op
==
'save'
)
{
list
(
$type
,
$id
)
=
split
(
'
:
'
,
$delta
);
list
(
$type
,
$id
)
=
explode
(
'
-
'
,
$delta
);
if
(
$type
==
'category'
)
{
$value
=
db_query
(
'UPDATE {aggregator_category} SET block = %d WHERE cid = %d'
,
$edit
[
'block'
],
$id
);
}
...
...
@@ -230,7 +230,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) {
}
}
else
if
(
$op
==
'view'
)
{
list
(
$type
,
$id
)
=
split
(
'
:
'
,
$delta
);
list
(
$type
,
$id
)
=
explode
(
'
-
'
,
$delta
);
switch
(
$type
)
{
case
'feed'
:
if
(
$feed
=
db_fetch_object
(
db_query
(
'SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d'
,
$id
)))
{
...
...
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