Browse Source

Revert "Format the image tag"

This reverts commit 9d25d5e49d.
pull/457/head
danpros 4 years ago
parent
commit
0b72a89e15
1 changed files with 1 additions and 15 deletions
  1. +1
    -15
      system/admin/admin.php

+ 1
- 15
system/admin/admin.php View File

@ -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…
Cancel
Save