mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
parent
9d25d5e49d
commit
0b72a89e15
1 changed files with 1 additions and 15 deletions
|
|
@ -115,14 +115,7 @@ function add_content($title, $tag, $url, $content, $user, $description = null, $
|
|||
$post_tag = safe_tag(implode(',', $tag));
|
||||
$post_tagmd = safe_html(implode(',', $tag));
|
||||
}
|
||||
|
||||
$media = explode(',', preg_replace("/\s*,\s*/", ",", rtrim($media, ',')));
|
||||
$med = array();
|
||||
foreach ($media as $m) {
|
||||
$med[] = $m;
|
||||
}
|
||||
$media = implode(',', $med);
|
||||
|
||||
|
||||
$post_date = date('Y-m-d-H-i-s');
|
||||
$post_title = safe_html($title);
|
||||
$post_media = preg_replace('/\s\s+/', ' ', strip_tags($media));
|
||||
|
|
@ -256,13 +249,6 @@ function edit_content($title, $tag, $url, $content, $oldfile, $destination = nul
|
|||
$post_tagmd = safe_html(implode(',', $tag));
|
||||
}
|
||||
|
||||
$media = explode(',', preg_replace("/\s*,\s*/", ",", rtrim($media, ',')));
|
||||
$med = array();
|
||||
foreach ($media as $m) {
|
||||
$med[] = $m;
|
||||
}
|
||||
$media = implode(',', $med);
|
||||
|
||||
$oldurl = explode('_', $oldfile);
|
||||
$dir = explode('/', $oldurl[0]);
|
||||
$olddate = date('Y-m-d-H-i-s', strtotime($date));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue