[geeklog-cvs] geeklog: Fixed wrong "access denied" message when attempting to ...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Dec 5 13:47:30 EST 2009
changeset 7515:67570edee13f
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/67570edee13f
user: Dirk Haun <dirk at haun-online.de>
date: Sat Dec 05 19:36:06 2009 +0100
description:
Fixed wrong "access denied" message when attempting to view comments on a poll that the user is not allowed to view (bug #0001044)
diffstat:
plugins/polls/functions.inc | 4 +-
plugins/polls/language/chinese_simplified_utf-8.php | 3 +-
plugins/polls/language/chinese_traditional_utf-8.php | 3 +-
plugins/polls/language/dutch.php | 3 +-
plugins/polls/language/dutch_utf-8.php | 3 +-
plugins/polls/language/english.php | 3 +-
plugins/polls/language/english_utf-8.php | 3 +-
plugins/polls/language/estonian.php | 3 +-
plugins/polls/language/estonian_utf-8.php | 3 +-
plugins/polls/language/french_canada.php | 3 +-
plugins/polls/language/french_canada_utf-8.php | 3 +-
plugins/polls/language/german.php | 3 +-
plugins/polls/language/german_formal.php | 3 +-
plugins/polls/language/german_formal_utf-8.php | 3 +-
plugins/polls/language/german_utf-8.php | 3 +-
plugins/polls/language/hebrew_utf-8.php | 3 +-
plugins/polls/language/japanese_utf-8.php | 51 +++++++++++++------------
plugins/polls/language/korean.php | 3 +-
plugins/polls/language/korean_utf-8.php | 3 +-
plugins/polls/language/russian.php | 3 +-
plugins/polls/language/russian_utf-8.php | 3 +-
plugins/polls/language/slovenian.php | 3 +-
plugins/polls/language/slovenian_utf-8.php | 3 +-
plugins/polls/language/spanish.php | 3 +-
plugins/polls/language/spanish_utf-8.php | 3 +-
plugins/polls/language/ukrainian.php | 3 +-
plugins/polls/language/ukrainian_koi8-u.php | 3 +-
plugins/polls/language/ukrainian_utf-8.php | 3 +-
public_html/docs/history | 2 +
29 files changed, 82 insertions(+), 53 deletions(-)
diffs (truncated from 439 to 300 lines):
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/functions.inc
--- a/plugins/polls/functions.inc Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/functions.inc Sat Dec 05 19:36:06 2009 +0100
@@ -995,7 +995,7 @@
*/
function plugin_displaycomment_polls ($id, $cid, $title, $order, $format, $page, $view)
{
- global $_TABLES, $LANG_ACCESS;
+ global $_TABLES, $LANG_ACCESS, $LANG_POLLS;
$retval = '';
@@ -1019,7 +1019,7 @@
} else {
$retval .= COM_startBlock ($LANG_ACCESS['accessdenied'], '',
COM_getBlockTemplate ('_msg_block', 'header'))
- . $LANG_ACCESS['storydenialmsg']
+ . $LANG_POLLS['deny_msg']
. COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
}
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/chinese_simplified_utf-8.php
--- a/plugins/polls/language/chinese_simplified_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/chinese_simplified_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -59,7 +59,8 @@
'editinstructions' => 'Please fill in the Poll ID, at least one question and two answers for it.',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Start Poll'
+ 'start_poll' => 'Start Poll',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/chinese_traditional_utf-8.php
--- a/plugins/polls/language/chinese_traditional_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/chinese_traditional_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -59,7 +59,8 @@
'editinstructions' => 'Please fill in the Poll ID, at least one question and two answers for it.',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Start Poll'
+ 'start_poll' => 'Start Poll',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/dutch.php
--- a/plugins/polls/language/dutch.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/dutch.php Sat Dec 05 19:36:06 2009 +0100
@@ -58,7 +58,8 @@
'editinstructions' => 'Please fill in the Poll ID, at least one question and two answers for it.',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Start Poll'
+ 'start_poll' => 'Start Poll',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/dutch_utf-8.php
--- a/plugins/polls/language/dutch_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/dutch_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -58,7 +58,8 @@
'editinstructions' => 'Please fill in the Poll ID, at least one question and two answers for it.',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Start Poll'
+ 'start_poll' => 'Start Poll',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/english.php
--- a/plugins/polls/language/english.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/english.php Sat Dec 05 19:36:06 2009 +0100
@@ -52,7 +52,8 @@
'editinstructions' => 'Please fill in the Poll ID, at least one question and two answers for it.',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Start Poll'
+ 'start_poll' => 'Start Poll',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/english_utf-8.php
--- a/plugins/polls/language/english_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/english_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -52,7 +52,8 @@
'editinstructions' => 'Please fill in the Poll ID, at least one question and two answers for it.',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Start Poll'
+ 'start_poll' => 'Start Poll',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/estonian.php
--- a/plugins/polls/language/estonian.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/estonian.php Sat Dec 05 19:36:06 2009 +0100
@@ -60,7 +60,8 @@
'editinstructions' => 'Palun sisesta küsitluse ID, vähemalt üks küsitluse küsimus ning sellele küsimusele vähemalt kaks vastusevarianti',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Käivita küsitlus'
+ 'start_poll' => 'Käivita küsitlus',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/estonian_utf-8.php
--- a/plugins/polls/language/estonian_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/estonian_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -60,7 +60,8 @@
'editinstructions' => 'Palun sisesta küsitluse ID, vähemalt üks küsitluse küsimus ning sellele küsimusele vähemalt kaks vastusevarianti',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Käivita küsitlus'
+ 'start_poll' => 'Käivita küsitlus',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/french_canada.php
--- a/plugins/polls/language/french_canada.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/french_canada.php Sat Dec 05 19:36:06 2009 +0100
@@ -59,7 +59,8 @@
'editinstructions' => 'Please fill in the Poll ID, at least one question and two answers for it.',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Start Poll'
+ 'start_poll' => 'Start Poll',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/french_canada_utf-8.php
--- a/plugins/polls/language/french_canada_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/french_canada_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -59,7 +59,8 @@
'editinstructions' => 'Please fill in the Poll ID, at least one question and two answers for it.',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Start Poll'
+ 'start_poll' => 'Start Poll',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/german.php
--- a/plugins/polls/language/german.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/german.php Sat Dec 05 19:36:06 2009 +0100
@@ -58,7 +58,8 @@
'editinstructions' => 'Bitte für die Umfrage-ID mindestens eine Frage und zwei Antworten eintragen.',
'pollclosed' => 'Diese Umfrage ist abgeschlossen.',
'pollhidden' => 'Du hast schon abgestimmt. Die Ergebnisse dieser Umfrage werden veröffentlicht, sobald sie abgeschlossen ist.',
- 'start_poll' => 'Zur Umfrage'
+ 'start_poll' => 'Zur Umfrage',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/german_formal.php
--- a/plugins/polls/language/german_formal.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/german_formal.php Sat Dec 05 19:36:06 2009 +0100
@@ -58,7 +58,8 @@
'editinstructions' => 'Bitte für die Umfrage-ID mindestens eine Frage und zwei Antworten eintragen.',
'pollclosed' => 'Diese Umfrage ist abgeschlossen.',
'pollhidden' => 'Sie haben schon abgestimmt. Die Ergebnisse dieser Umfrage werden veröffentlicht, sobald sie abgeschlossen ist.',
- 'start_poll' => 'Zur Umfrage'
+ 'start_poll' => 'Zur Umfrage',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/german_formal_utf-8.php
--- a/plugins/polls/language/german_formal_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/german_formal_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -58,7 +58,8 @@
'editinstructions' => 'Bitte für die Umfrage-ID mindestens eine Frage und zwei Antworten eintragen.',
'pollclosed' => 'Diese Umfrage ist abgeschlossen.',
'pollhidden' => 'Sie haben schon abgestimmt. Die Ergebnisse dieser Umfrage werden veröffentlicht, sobald sie abgeschlossen ist.',
- 'start_poll' => 'Zur Umfrage'
+ 'start_poll' => 'Zur Umfrage',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/german_utf-8.php
--- a/plugins/polls/language/german_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/german_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -58,7 +58,8 @@
'editinstructions' => 'Bitte für die Umfrage-ID mindestens eine Frage und zwei Antworten eintragen.',
'pollclosed' => 'Diese Umfrage ist abgeschlossen.',
'pollhidden' => 'Du hast schon abgestimmt. Die Ergebnisse dieser Umfrage werden veröffentlicht, sobald sie abgeschlossen ist.',
- 'start_poll' => 'Zur Umfrage'
+ 'start_poll' => 'Zur Umfrage',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/hebrew_utf-8.php
--- a/plugins/polls/language/hebrew_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/hebrew_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -59,7 +59,8 @@
'editinstructions' => '×× × ×××× ×ת ק×× ×××××× ×©× ×סקר, ×פ××ת ש××× ××ת ××©×ª× ×ª×©×××ת ××.',
'pollclosed' => '××צ××¢× ×סקר ×× ×¡××ר×.',
'pollhidden' => '××ר ×צ×עת×. ת×צ××ת ×סקר ××צ×× ××שר ××צ××¢× ×ª×ס×ר.',
- 'start_poll' => '×ת×××× ×ת ×סקר'
+ 'start_poll' => '×ת×××× ×ת ×סקר',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/japanese_utf-8.php
--- a/plugins/polls/language/japanese_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/japanese_utf-8.php Sat Dec 05 19:36:06 2009 +0100
@@ -41,30 +41,31 @@
###############################################################################
$LANG_POLLS = array(
- 'polls' => 'ã¢ã³ã±ã¼ã',
- 'results' => 'çµæ',
- 'pollresults' => 'æ票çµæ',
- 'votes' => 'æ票',
- 'vote' => 'æ票ãã',
- 'pastpolls' => 'ã¢ã³ã±ã¼ãã®ä¸è¦§',
- 'savedvotetitle' => 'æ票ãããã¨ããããã¾ãã',
- 'savedvotemsg' => 'ãã¼ã:',
- 'pollstitle' => 'ã¢ã³ã±ã¼ãä¸è¦§',
- 'polltopics' => 'ä»ã®ã¢ã³ã±ã¼ããè¦ã',
- 'stats_top10' => 'ã¢ã³ã±ã¼ãï¼ä¸ä½10件ï¼',
- 'stats_topics' => 'ã¢ã³ã±ã¼ãã®è³ªå',
- 'stats_votes' => 'æ票',
- 'stats_none' => 'ãã®ãµã¤ãã«ã¯ã¢ã³ã±ã¼ãããªãããã¾ã 誰ãæ票ãã¦ããªãããã§ãã',
- 'stats_summary' => 'ã¢ã³ã±ã¼ãæ°(æ票æ°)',
- 'open_poll' => 'æ票å¯å¦',
- 'answer_all' => 'æ®ãã®ãã¹ã¦ã®è³ªåã«ãçããã ãã',
- 'not_saved' => 'çµæã¯ä¿åããã¾ããã§ãã',
- 'upgrade1' => 'ã¢ã³ã±ã¼ããã©ã°ã¤ã³ã®æ°ãããã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ããã¾ããã',
- 'upgrade2' => 'ã¢ããã°ã¬ã¼ããã¦ãã ããã',
- 'editinstructions' => 'ã¢ã³ã±ã¼ãIDãå
¥åãã¦ãã ãããå°ãªãã¨ã1ã¤ã®è³ªåã¨2ã¤ã®åçãç¨æãã¦ãã ããã',
- 'pollclosed' => 'ãã®ã¢ã³ã±ã¼ãã¯æ票ãçµäºãã¾ããã',
- 'pollhidden' => 'ããªãã¯æ¢ã«æ票æ¸ã¿ã§ãããã®ã¢ã³ã±ã¼ãã®çµæã¯æ票çµäºå¾ã«å
¬éããã¾ãã',
- 'start_poll' => 'æ稿ãã'
+ 'polls' => 'ã¢ã³ã±ã¼ã',
+ 'results' => 'çµæ',
+ 'pollresults' => 'æ票çµæ',
+ 'votes' => 'æ票',
+ 'vote' => 'æ票ãã',
+ 'pastpolls' => 'ã¢ã³ã±ã¼ãã®ä¸è¦§',
+ 'savedvotetitle' => 'æ票ãããã¨ããããã¾ãã',
+ 'savedvotemsg' => 'ãã¼ã:',
+ 'pollstitle' => 'ã¢ã³ã±ã¼ãä¸è¦§',
+ 'polltopics' => 'ä»ã®ã¢ã³ã±ã¼ããè¦ã',
+ 'stats_top10' => 'ã¢ã³ã±ã¼ãï¼ä¸ä½10件ï¼',
+ 'stats_topics' => 'ã¢ã³ã±ã¼ãã®è³ªå',
+ 'stats_votes' => 'æ票',
+ 'stats_none' => 'ãã®ãµã¤ãã«ã¯ã¢ã³ã±ã¼ãããªãããã¾ã 誰ãæ票ãã¦ããªãããã§ãã',
+ 'stats_summary' => 'ã¢ã³ã±ã¼ãæ°(æ票æ°)',
+ 'open_poll' => 'æ票å¯å¦',
+ 'answer_all' => 'æ®ãã®ãã¹ã¦ã®è³ªåã«ãçããã ãã',
+ 'not_saved' => 'çµæã¯ä¿åããã¾ããã§ãã',
+ 'upgrade1' => 'ã¢ã³ã±ã¼ããã©ã°ã¤ã³ã®æ°ãããã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ããã¾ããã',
+ 'upgrade2' => 'ã¢ããã°ã¬ã¼ããã¦ãã ããã',
+ 'editinstructions' => 'ã¢ã³ã±ã¼ãIDãå
¥åãã¦ãã ãããå°ãªãã¨ã1ã¤ã®è³ªåã¨2ã¤ã®åçãç¨æãã¦ãã ããã',
+ 'pollclosed' => 'ãã®ã¢ã³ã±ã¼ãã¯æ票ãçµäºãã¾ããã',
+ 'pollhidden' => 'ããªãã¯æ¢ã«æ票æ¸ã¿ã§ãããã®ã¢ã³ã±ã¼ãã®çµæã¯æ票çµäºå¾ã«å
¬éããã¾ãã',
+ 'start_poll' => 'æ稿ãã',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
@@ -153,7 +154,7 @@
// Note: entries 0, 1, and 12 are the same as in $LANG_configselects['Core']
$LANG_configselects['polls'] = array(
0 => array('ã¯ã' => 1, 'ããã' => 0),
- 1 => array('ã¯ã' => TRUE, 'ããã' => FALSE),
+ 1 => array('ã¯ã' => true, 'ããã' => false),
2 => array('ç»é²é ' => 'submitorder', 'å¾ç¥¨é ' => 'voteorder'),
9 => array('ä½æããã¢ã³ã±ã¼ãã表示ãã' => 'item', 'ã¢ã³ã±ã¼ã管çã表示ãã' => 'list', 'ã¢ã³ã±ã¼ãä¸è¦§ã表示ãã' => 'plugin', 'ãã¼ã ã表示ãã' => 'home', '管çç»é¢ãããã表示ãã' => 'admin'),
12 => array('ã¢ã¯ã»ã¹ä¸å¯' => 0, '表示' => 2, '表示ã»ç·¨é' => 3)
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/korean.php
--- a/plugins/polls/language/korean.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/korean.php Sat Dec 05 19:36:06 2009 +0100
@@ -59,7 +59,8 @@
'editinstructions' => 'Please fill in the Poll ID, at least one question and two answers for it.',
'pollclosed' => 'This poll is closed for voting.',
'pollhidden' => 'You have already voted. This poll results will only be shown when voting is closed.',
- 'start_poll' => 'Start Poll'
+ 'start_poll' => 'Start Poll',
+ 'deny_msg' => 'Access to this poll is denied. Either the poll has been moved/removed or you do not have sufficient permissions.'
);
###############################################################################
diff -r 45420e4a6c33 -r 67570edee13f plugins/polls/language/korean_utf-8.php
--- a/plugins/polls/language/korean_utf-8.php Sat Dec 05 16:52:21 2009 +0100
+++ b/plugins/polls/language/korean_utf-8.php Sat Dec 05 19:36:06 2009 +0100
More information about the geeklog-cvs
mailing list