summaryrefslogtreecommitdiff
path: root/includes/node.inc
diff options
context:
space:
mode:
authornatrak <>2001-11-23 17:10:45 +0000
committernatrak <>2001-11-23 17:10:45 +0000
commitdcf8e14a60dc312c0bc43e9e8f25e9106d4c7240 (patch)
tree7049fec0aef579f809a75a703bfa0cbf7a5d0904 /includes/node.inc
parent7c7b72525ba7cfd966fd70ab5deb2e5c99530d8f (diff)
downloadbrdo-dcf8e14a60dc312c0bc43e9e8f25e9106d4c7240.tar.gz
brdo-dcf8e14a60dc312c0bc43e9e8f25e9106d4c7240.tar.bz2
- modified node_save so that revisions are not validated using check_input,
as this breaks revisions. - modified link_node() to take a third parameter $main, which will be passed on to _link hooks. This lets modules decide which links a node will get when shown on the main page, or when not. - updated themes to use the new syntax.
Diffstat (limited to 'includes/node.inc')
-rw-r--r--includes/node.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/node.inc b/includes/node.inc
index a020cb724..bbfd8e5d6 100644
--- a/includes/node.inc
+++ b/includes/node.inc
@@ -194,9 +194,9 @@ function node_save($node, $filter) {
// prepare the query:
foreach ($node as $key => $value) {
if (in_array($key, $fields)) {
- $q[] = check_query($key) ." = '". check_input($value) ."'";
+ $q[] = check_query($key) ." = '". ($key != "revisions" ? check_input($value) : $value) ."'";
// NOTE: for the values we use 'check_input()' such that we apply
- // the filters
+ // the filters, except revisions
}
}