issue: reply edit of page and announce columns
[minimedit.git] / upload.inc.php
index f2e101a3a9faa4d412eb28c0e42d3778a30ea076..22db140cd27351543f12682ab41eae4b74d05348 100644 (file)
@@ -63,6 +63,7 @@ function messagehtml($input)
                '{<([^>\s|]+)[\s|]([^>]+)>}'   => '<a href="$1">$2</a>', # hyperlink
                "/\r\n?/" => "\n",        # unix newlines
                "/  +\n/" => "<br />",    # trailing spaces for hard line break
+               '{^(/data/.*\.jpe?g)\z}m'      => '<img src="/thumb/640x/\1" />', # image reference
                "/^[-*] (.*)$\n?/m"            => '<li>$1</li>',         # list item
                "/^(.+)$\n?/m"                 => "<p>$1</p>\n",         # paragraph
                "{^<p>(<li>.*</li>)(?:</p>\n)?}m" => "<ul>$1</ul>\n",    # list container
@@ -110,6 +111,9 @@ function createcomment($input, &$Issue = NULL)
        if (isset($input['announce'])) {
                $reply['announced'] = !!$input['announce'];
        }
+       if (isset($input['page'])) {
+               $reply['page'] = $input['page'];
+       }
 
        if (isset($input['id'])) {
                $newcomment = $input['id'];