projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Closes #713: add a parameter to run the site in a degraded mode
[platal.git]
/
classes
/
xdb.php
diff --git
a/classes/xdb.php
b/classes/xdb.php
index
a431882
..
91b0d19
100644
(file)
--- a/
classes/xdb.php
+++ b/
classes/xdb.php
@@
-110,7
+110,12
@@
class XDB
public static function execute()
{
public static function execute()
{
- return XDB::_query(XDB::_prepare(func_get_args()));
+ global $globals;
+ $args = func_get_args();
+ if ($globals->mode != 'rw' && !strpos($args[0], 'logger')) {
+ return;
+ }
+ return XDB::_query(XDB::_prepare($args));
}
public static function iterator()
}
public static function iterator()