This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 409a7b95c4ff30e3d57c1badff42b919f68b6ca5 (commit)
from 8d58e74a82486da552158d04299ece636493b31e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=409a7b95c4ff30e3d57c1badff42b919f68b6ca5
commit 409a7b95c4ff30e3d57c1badff42b919f68b6ca5
Author: Franck Villaume <[email protected]>
Date: Wed May 1 15:19:36 2019 +0200
diary: add link to markdown syntax
diff --git a/src/www/my/diary.php b/src/www/my/diary.php
index d08ab88..2f6c1a5 100644
--- a/src/www/my/diary.php
+++ b/src/www/my/diary.php
@@ -177,8 +177,11 @@ if (!session_loggedin()) {
plugin_hook_by_reference("text_editor", $params);
echo html_e('h2', array(), $info_str);
-
- echo $HTML->openForm(array('action' => getStringFromServer('PHP_SELF'),
'method' => 'post'));
+ if (forge_get_config('diary_parser_type') == 'markdown') {
+ echo html_e('p', array(), sprintf(_('You can use markdown
syntax in the details of your blog post. Documentation for Markdown syntax is
available at <a href="%1$s">%1$s</a>.'),
+
'https://michelf.ca/projets/php-markdown/syntaxe/'));
+ }
+ echo $HTML->openForm(array('action' => '/my/diary.php', 'method' =>
'post'));
echo html_e('input', array('type' => 'hidden', 'name' => 'form_key',
'value' => form_generate_key()));
echo html_e('input', array('type' => 'hidden', 'name' => $proc_str,
'value' => '1'));
echo html_e('input', array('type' => 'hidden', 'name' => 'diary_id',
'value' => $_diary_id));
-----------------------------------------------------------------------
Summary of changes:
src/www/my/diary.php | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits