summaryrefslogtreecommitdiff
path: root/it_text.class
diff options
context:
space:
mode:
authorUrban Müller2014-07-02 14:58:05 +0200
committerUrban Müller2014-07-02 14:58:05 +0200
commitef6459b7a06f159505290d1f4b42318da3530320 (patch)
tree6bb130cce57e5713b06942d369539be43d760741 /it_text.class
parentccfa2eb28c368aa0bbbea7bf7d55df9ada340780 (diff)
downloaditools-ef6459b7a06f159505290d1f4b42318da3530320.tar.gz
itools-ef6459b7a06f159505290d1f4b42318da3530320.tar.bz2
itools-ef6459b7a06f159505290d1f4b42318da3530320.zip
do more label sampling on rare POSTs
Diffstat (limited to 'it_text.class')
-rw-r--r--it_text.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_text.class b/it_text.class
index d3c5b28..4a1d32b 100644
--- a/it_text.class
+++ b/it_text.class
@@ -86,7 +86,7 @@ function it_text($p = array())
$this->initlang($p['forcelanguage'], "setting language from programmer override");
# Create empty array to activate sampling; dont kill any existing one
- if (!it::is_live() || rand(1, 100) == 1)
+ if (!it::is_live() || rand(1, $_SERVER['POST'] ? 10 : 100) == 1)
$GLOBALS['it_text_sampling'] = (array)$GLOBALS['it_text_sampling'];
# Make this object available under $GLOBALS['it_text'], or add my texts to $GLOBALS['it_text'] if it exists