From 484279620435be0a59d32044f0e484ebb5962958 Mon Sep 17 00:00:00 2001 From: Kanti Date: Sun, 29 Mar 2015 16:18:16 +0200 Subject: [PATCH] [TASK] fix for PHP 5.4 since pullRequest #140 --- system/admin/admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/admin/admin.php b/system/admin/admin.php index d428b38..3f17051 100644 --- a/system/admin/admin.php +++ b/system/admin/admin.php @@ -68,7 +68,7 @@ function edit_post($title, $tag, $url, $content, $oldfile, $destination = null, $post_title = $title; $post_fi = $fi; - $post_vid = str_replace(["http://", "https://", "www.", "youtube", ".com", "/watch?v=", "/embed/"], "", $vid); + $post_vid = str_replace(array("http://", "https://", "www.", "youtube", ".com", "/watch?v=", "/embed/"), "", $vid); $post_tag = preg_replace(array('/[^a-zA-Z0-9,.\-\p{L}]/u', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($tag)); $post_url = strtolower(preg_replace(array('/[^a-zA-Z0-9 \-\p{L}]/u', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($url))); if ($description !== null) { @@ -161,7 +161,7 @@ function add_post($title, $tag, $url, $content, $user, $description = null, $fi, $post_date = date('Y-m-d-H-i-s'); $post_title = $title; $post_fi = $fi; - $post_vid = str_replace(["http://", "https://", "www.", "youtube", ".com", "/watch?v=", "/embed/"], "", $vid); + $post_vid = str_replace(array("http://", "https://", "www.", "youtube", ".com", "/watch?v=", "/embed/"), "", $vid); $post_tag = preg_replace(array('/[^a-zA-Z0-9,.\-\p{L}]/u', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($tag)); $post_url = strtolower(preg_replace(array('/[^a-zA-Z0-9 \-\p{L}]/u', '/[ -]+/', '/^-|-$/'), array('', '-', ''), remove_accent($url))); if ($description !== null) {