[geeklog-hg] geeklog: Allow "Wiki-style Format" as default post mode (bug #00...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Jan 2 08:37:42 EST 2014
changeset 9368:8830d7f56f75
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/8830d7f56f75
user: Kenji ITO <mystralkk at gmail.com>
date: Thu Jan 02 22:37:26 2014 +0900
description:
Allow "Wiki-style Format" as default post mode (bug #0001731)
diffstat:
language/english.php | 5 +++--
language/english_utf-8.php | 5 +++--
language/japanese_utf-8.php | 5 +++--
public_html/admin/configuration_validation.php | 2 +-
system/classes/story.class.php | 3 ++-
5 files changed, 12 insertions(+), 8 deletions(-)
diffs (91 lines):
diff -r c50780e885ae -r 8830d7f56f75 language/english.php
--- a/language/english.php Wed Jan 01 11:04:29 2014 -0500
+++ b/language/english.php Thu Jan 02 22:37:26 2014 +0900
@@ -1860,7 +1860,8 @@
$LANG_postmodes = array(
'plaintext' => 'Plain Old Text',
- 'html' => 'HTML Formatted'
+ 'html' => 'HTML Formatted',
+ 'wikitext' => 'Wiki-style format'
);
$LANG_sortcodes = array(
@@ -2285,7 +2286,7 @@
"Check IP and Site URL" => 5,
"Check IP and Full URL" => 6,
"Check IP, Full URL, and Site URL" => 7),
- 5 => array('Plain Old Text' => 'plaintext', 'HTML Formatted' => 'html'),
+ 5 => array('Plain Old Text' => 'plaintext', 'HTML Formatted' => 'html', 'Wiki-style Format' => 'wikitext'),
6 => array('12'=>'12','24'=>'24'),
7 => array('Last Page' => 'last', 'First Page' => 'first', 'Every Page' => 'all'),
8 => array('Right'=>'right', 'Left'=>'left'),
diff -r c50780e885ae -r 8830d7f56f75 language/english_utf-8.php
--- a/language/english_utf-8.php Wed Jan 01 11:04:29 2014 -0500
+++ b/language/english_utf-8.php Thu Jan 02 22:37:26 2014 +0900
@@ -1860,7 +1860,8 @@
$LANG_postmodes = array(
'plaintext' => 'Plain Old Text',
- 'html' => 'HTML Formatted'
+ 'html' => 'HTML Formatted',
+ 'wikitext' => 'Wiki-style format'
);
$LANG_sortcodes = array(
@@ -2285,7 +2286,7 @@
"Check IP and Site URL" => 5,
"Check IP and Full URL" => 6,
"Check IP, Full URL, and Site URL" => 7),
- 5 => array('Plain Old Text' => 'plaintext', 'HTML Formatted' => 'html'),
+ 5 => array('Plain Old Text' => 'plaintext', 'HTML Formatted' => 'html', 'Wiki-style Format' => 'wikitext'),
6 => array('12'=>'12','24'=>'24'),
7 => array('Last Page' => 'last', 'First Page' => 'first', 'Every Page' => 'all'),
8 => array('Right'=>'right', 'Left'=>'left'),
diff -r c50780e885ae -r 8830d7f56f75 language/japanese_utf-8.php
--- a/language/japanese_utf-8.php Wed Jan 01 11:04:29 2014 -0500
+++ b/language/japanese_utf-8.php Thu Jan 02 22:37:26 2014 +0900
@@ -1862,7 +1862,8 @@
$LANG_postmodes = array(
'plaintext' => 'ããã¹ã',
- 'html' => 'HTML'
+ 'html' => 'HTML',
+ 'wikitext' => 'Wikiã¹ã¿ã¤ã«'
);
$LANG_sortcodes = array(
@@ -2279,7 +2280,7 @@
2 => array('æå¦' => 0, 'ææ°ãã¹ãã®ã¿ä¿æ' => 1, 'ãã«ããã¹ãã許å¯' => 2),
3 => array('ãã©ãã¯ããã¯ãæå¹' => 0, 'ãã©ãã¯ããã¯ãåæ¢' => -1),
4 => array('ä½ãæ¤æ»ããªã' => 0, 'ãµã¤ãã®URLãªã³ã¯ãæ¤æ»' => 1, 'å®å
¨ãªURLãæ¤æ»' => 2, 'ãµã¤ãã®URLã¨å®å
¨ãªURLãæ¤æ»' => 3, 'IPã¢ãã¬ã¹ã¨ãµã¤ãã®IPã¢ãã¬ã¹ãæ¤æ»' => 4, 'IPã¢ãã¬ã¹ã¨ãµã¤ãã®URLãªã³ã¯ãæ¤æ»' => 5, 'IPã¢ãã¬ã¹ã¨å®å
¨ãªURLãæ¤æ»' => 6, 'IPã¢ãã¬ã¹ãå®å
¨ãªURLããµã¤ãã®URLãæ¤æ»' => 7),
- 5 => array('ããã¹ã' => 'plaintext', 'HTML' => 'html'),
+ 5 => array('ããã¹ã' => 'plaintext', 'HTML' => 'html', 'Wikiã¹ã¿ã¤ã«' => 'wikitext'),
6 => array('12' => 12, '24' => 24),
7 => array('æå¾ã®ãã¼ã¸' => 'last', 'æåã®ãã¼ã¸' => 'first', 'åãã¼ã¸' => 'all'),
8 => array('å³' => 'right', 'å·¦' => 'left'),
diff -r c50780e885ae -r 8830d7f56f75 public_html/admin/configuration_validation.php
--- a/public_html/admin/configuration_validation.php Wed Jan 01 11:04:29 2014 -0500
+++ b/public_html/admin/configuration_validation.php Thu Jan 02 22:37:26 2014 +0900
@@ -359,7 +359,7 @@
$_CONF_VALIDATE['Core']['storysubmission'] = array('rule' => 'boolean');
$_CONF_VALIDATE['Core']['listdraftstories'] = array('rule' => 'boolean');
$_CONF_VALIDATE['Core']['postmode'] = array(
- 'rule' => array('inList', array('html', 'plaintext'), true)
+ 'rule' => array('inList', array('html', 'plaintext', 'wikitext'), true)
);
$_CONF_VALIDATE['Core']['speedlimit'] = array('rule' => 'numeric');
$_CONF_VALIDATE['Core']['skip_preview'] = array('rule' => 'boolean');
diff -r c50780e885ae -r 8830d7f56f75 system/classes/story.class.php
--- a/system/classes/story.class.php Wed Jan 01 11:04:29 2014 -0500
+++ b/system/classes/story.class.php Thu Jan 02 22:37:26 2014 +0900
@@ -555,7 +555,8 @@
$this->_numemails = 0;
if (($_CONF['advanced_editor'] && $_USER['advanced_editor']) &&
- ($_CONF['postmode'] != 'plaintext')) {
+ ($_CONF['postmode'] !== 'plaintext') &&
+ ($_CONF['postmode'] !== 'wikitext')) {
$this->_advanced_editor_mode = 1;
$this->_postmode = 'adveditor';
} else {
More information about the geeklog-cvs
mailing list