forked from Cavemanon/cavepaintings
tag_explode -> Tag::explode
This commit is contained in:
@@ -54,7 +54,7 @@ class PixelFileHandler implements Extension {
|
||||
$image->hash = $metadata['hash'];
|
||||
$image->filename = $metadata['filename'];
|
||||
$image->ext = $metadata['extension'];
|
||||
$image->tag_array = tag_explode($metadata['tags']);
|
||||
$image->tag_array = Tag::explode($metadata['tags']);
|
||||
$image->source = $metadata['source'];
|
||||
|
||||
return $image;
|
||||
|
@@ -55,7 +55,7 @@ class Upload implements Extension {
|
||||
|
||||
if(($event instanceof PageRequestEvent) && $event->page_matches("upload")) {
|
||||
if(count($_FILES) + count($_POST) > 0) {
|
||||
$tags = tag_explode($_POST['tags']);
|
||||
$tags = Tag::explode($_POST['tags']);
|
||||
$source = isset($_POST['source']) ? $_POST['source'] : null;
|
||||
global $user;
|
||||
if($this->can_upload($user)) {
|
||||
@@ -81,7 +81,7 @@ class Upload implements Extension {
|
||||
$url = $_GET['url'];
|
||||
$tags = array('tagme');
|
||||
if(!empty($_GET['tags']) && $_GET['tags'] != "null") {
|
||||
$tags = tag_explode($_GET['tags']);
|
||||
$tags = Tag::explode($_GET['tags']);
|
||||
}
|
||||
$ok = $this->try_transload($url, $tags, $url);
|
||||
$this->theme->display_upload_status($event->page, $ok);
|
||||
|
Reference in New Issue
Block a user