Browse Source

wrap text from imported link in [quote]

pull/1/head
Friendika 10 years ago
parent
commit
f0af4de4a7
2 changed files with 14 additions and 2 deletions
  1. +13
    -1
      boot.php
  2. +1
    -1
      mod/parse_url.php

+ 13
- 1
boot.php View File

@ -7,7 +7,7 @@ require_once('include/text.php');
require_once("include/pgettext.php");
define ( 'FRIENDIKA_VERSION', '2.2.1061' );
define ( 'FRIENDIKA_VERSION', '2.2.1062' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1077 );
@ -607,6 +607,18 @@ function check_config(&$a) {
}}
function get_guid() {
$exists = true;
do {
$s = random_string(16);
$r = q("select id from guid where guid = '%s' limit 1", dbesc($s));
if(! results($r))
$exists = false;
} while($exists);
q("insert into guid ( guid ) values ( '%s' ) ", dbesc($s));
return $s;
}
// wrapper for adding a login box. If $register == true provide a registration
// link. This will most always depend on the value of $a->config['register_policy'].


+ 1
- 1
mod/parse_url.php View File

@ -116,7 +116,7 @@ function parse_url_content(&$a) {
}
if(strlen($text)) {
$text = '<br /><br />' . $text;
$text = '<br /><br /><blockquote>' . $text . '</blockquote><br />';
}
echo sprintf($template,$url,($title) ? $title : $url,$text);


Loading…
Cancel
Save