projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes typo in sql query.
[platal.git]
/
classes
/
platalglobals.php.in
diff --git
a/classes/platalglobals.php.in
b/classes/platalglobals.php.in
index
774a809
..
d9151ae
100644
(file)
--- a/
classes/platalglobals.php.in
+++ b/
classes/platalglobals.php.in
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-201
0
Polytechnique.org *
+ * Copyright (C) 2003-201
1
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,6
+21,8
@@
class PlatalGlobals extends PlGlobals
{
class PlatalGlobals extends PlGlobals
{
+ const DEBUG_NOCACHE = DEBUG_USERBASE;
+
/** The x.org version */
public $version = '@VERSION@';
/** The x.org version */
public $version = '@VERSION@';
@@
-88,8
+90,12
@@
class PlatalGlobals extends PlGlobals
FROM requests");
$this->changeDynamicConfig(array('NbValid' => $res->fetchOneCell()));
}
FROM requests");
$this->changeDynamicConfig(array('NbValid' => $res->fetchOneCell()));
}
-}
+ public function cacheEnabled()
+ {
+ return ($this->debug & self::DEBUG_NOCACHE) == 0;
+ }
+}
/******************************************************************************
* Dynamic configuration update/edition stuff
/******************************************************************************
* Dynamic configuration update/edition stuff