aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-18 03:59:49 -0700
committerfriendica <info@friendica.com>2012-03-18 03:59:49 -0700
commit09ed17df99dd3acebeba814ff19c43c6c4a512f8 (patch)
treef3c256fb748d21440ea19a25fd2232c626fc1122
parent4bb280bc2f7068f0c1199e9f8119e25278aa3bcb (diff)
parent72894b0e91515461717c584879e5a4331841104a (diff)
downloadvolse-hubzilla-09ed17df99dd3acebeba814ff19c43c6c4a512f8.tar.gz
volse-hubzilla-09ed17df99dd3acebeba814ff19c43c6c4a512f8.tar.bz2
volse-hubzilla-09ed17df99dd3acebeba814ff19c43c6c4a512f8.zip
Merge pull request #146 from CatoTH/master
replace split() by explode(); split is deprecated
-rwxr-xr-xinclude/conversation.php2
-rwxr-xr-xinclude/email.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 8ca484c9e..e9f024c27 100755
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -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)),
diff --git a/include/email.php b/include/email.php
index a3449a424..8ea8145fb 100755
--- a/include/email.php
+++ b/include/email.php
@@ -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)) {