rename diaspora2bb() to markdown_to_bb() to reflect that is has a more generic use
This commit is contained in:
parent
5ea46444e9
commit
e46e3027fa
@ -508,7 +508,7 @@ class Item extends \Zotlabs\Web\Controller {
|
|||||||
// $body = escape_tags(trim($body));
|
// $body = escape_tags(trim($body));
|
||||||
// $body = str_replace("\n",'<br />', $body);
|
// $body = str_replace("\n",'<br />', $body);
|
||||||
// $body = preg_replace_callback('/\[share(.*?)\]/ism','\share_shield',$body);
|
// $body = preg_replace_callback('/\[share(.*?)\]/ism','\share_shield',$body);
|
||||||
// $body = diaspora2bb($body,true);
|
// $body = markdown_to_bb($body,true);
|
||||||
// $body = preg_replace_callback('/\[share(.*?)\]/ism','\share_unshield',$body);
|
// $body = preg_replace_callback('/\[share(.*?)\]/ism','\share_unshield',$body);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
2
boot.php
2
boot.php
@ -44,7 +44,7 @@ require_once('include/account.php');
|
|||||||
|
|
||||||
|
|
||||||
define ( 'PLATFORM_NAME', 'hubzilla' );
|
define ( 'PLATFORM_NAME', 'hubzilla' );
|
||||||
define ( 'STD_VERSION', '1.15' );
|
define ( 'STD_VERSION', '1.15.1' );
|
||||||
define ( 'ZOT_REVISION', '1.1' );
|
define ( 'ZOT_REVISION', '1.1' );
|
||||||
|
|
||||||
define ( 'DB_UPDATE_VERSION', 1184 );
|
define ( 'DB_UPDATE_VERSION', 1184 );
|
||||||
|
@ -89,7 +89,7 @@ function import_diaspora($data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$gender = escape_tags($data['user']['profile']['gender']);
|
$gender = escape_tags($data['user']['profile']['gender']);
|
||||||
$about = diaspora2bb($data['user']['profile']['bio']);
|
$about = markdown_to_bb($data['user']['profile']['bio']);
|
||||||
$publish = intval($data['user']['profile']['searchable']);
|
$publish = intval($data['user']['profile']['searchable']);
|
||||||
if($data['user']['profile']['birthday'])
|
if($data['user']['profile']['birthday'])
|
||||||
$dob = datetime_convert('UTC','UTC',$data['user']['profile']['birthday'],'Y-m-d');
|
$dob = datetime_convert('UTC','UTC',$data['user']['profile']['birthday'],'Y-m-d');
|
||||||
|
@ -123,7 +123,7 @@ function diaspora_mention_callback($matches) {
|
|||||||
* @param boolean $use_zrl default false
|
* @param boolean $use_zrl default false
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function diaspora2bb($s, $use_zrl = false) {
|
function markdown_to_bb($s, $use_zrl = false) {
|
||||||
|
|
||||||
$s = str_replace("
","\r",$s);
|
$s = str_replace("
","\r",$s);
|
||||||
$s = str_replace("
\n>","",$s);
|
$s = str_replace("
\n>","",$s);
|
||||||
|
Reference in New Issue
Block a user