mirror of
https://github.com/friendica/friendica
synced 2025-04-23 02:30:20 +00:00
Several improvements
This commit is contained in:
parent
bdd2754740
commit
59b45f7fc1
2 changed files with 6 additions and 2 deletions
|
@ -230,7 +230,8 @@ function bbcode($Text,$preserve_nl = false) {
|
|||
$Text);
|
||||
|
||||
// [img=widthxheight]image source[/img]
|
||||
$Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '<img src="$3" style="height: $2px; width: $1px;" >', $Text);
|
||||
//$Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '<img src="$3" style="height: $2px; width: $1px;" >', $Text);
|
||||
$Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '<img src="$3" style="width: $1px;" >', $Text);
|
||||
|
||||
// Images
|
||||
// [img]pathtoimage[/img]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue