]> git.mxchange.org Git - friendica.git/commitdiff
replace split() by explode(); split is deprecated
authorTobias Hößl <tobias@hoessl.eu>
Sun, 18 Mar 2012 10:36:49 +0000 (10:36 +0000)
committerTobias Hößl <tobias@hoessl.eu>
Sun, 18 Mar 2012 10:36:49 +0000 (10:36 +0000)
include/conversation.php
include/email.php

index 8ca484c9e7f8bfa5cc07bf2abb994a28bbca219d..e9f024c27456d0d53d5ae6e97b2474f20bfd8cf9 100755 (executable)
@@ -649,7 +649,7 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
                                        // template to use to render item (wall, walltowall, search)
                                        'template' => $template,
                                        
-                                       'type' => implode("",array_slice(split("/",$item['verb']),-1)),
+                                       'type' => implode("",array_slice(explode("/",$item['verb']),-1)),
                                        'tags' => $tags,
                                        'body' => template_escape($body),
                                        'text' => strip_tags(template_escape($body)),
index a3449a4249934bd965f49c031cb3d8cb90ad77e5..8ea8145fb65acc9a58443a8139f3217ce3ee036a 100755 (executable)
@@ -56,7 +56,7 @@ function email_msg_headers($mbox,$uid) {
        $raw_header = (($mbox && $uid) ? @imap_fetchheader($mbox,$uid,FT_UID) : '');
        $raw_header = str_replace("\r",'',$raw_header);
        $ret = array();
-       $h = split("\n",$raw_header);
+       $h = explode("\n",$raw_header);
        if(count($h))
        foreach($h as $line ) {
            if (preg_match("/^[a-zA-Z]/", $line)) {