summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/locale.inc2
-rw-r--r--includes/node.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/locale.inc b/includes/locale.inc
index 4fd927c56..8f4622a3f 100644
--- a/includes/locale.inc
+++ b/includes/locale.inc
@@ -7,7 +7,7 @@ function locale_init() {
function t($string) {
global $languages;
- return ($languages ? locale($string) : $string);
+ return ($languages && function_exists("locale") ? locale($string) : $string);
}
?> \ No newline at end of file
diff --git a/includes/node.inc b/includes/node.inc
index 37e46f0b5..374732ae6 100644
--- a/includes/node.inc
+++ b/includes/node.inc
@@ -147,7 +147,7 @@ function node_save($node) {
function node_invoke($node, $name, $arg = 0) {
if ($node[type]) $function = $node[type] ."_$name";
if ($node->type) $function = $node->type ."_$name";
- if ($function) return ($arg ? $function($node, $arg) : $function($node));
+ if (function_exists($function)) return ($arg ? $function($node, $arg) : $function($node));
}
function node_view($node, $main = 0) {