From 10245113d572ae9c420ba016972b51ce7dd1b8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Emourgeon?= Date: Tue, 16 Mar 2010 10:40:29 +0100 Subject: [PATCH] Fixed ticket 406, PHP 5.3.1 compatibility. --- src/IDF/Form/IssueCreate.php | 2 +- src/IDF/Form/UpdateUpload.php | 2 +- src/IDF/Form/Upload.php | 2 +- src/IDF/Form/WikiCreate.php | 2 +- src/IDF/Form/WikiUpdate.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/IDF/Form/IssueCreate.php b/src/IDF/Form/IssueCreate.php index 65e74e5..9cacac6 100644 --- a/src/IDF/Form/IssueCreate.php +++ b/src/IDF/Form/IssueCreate.php @@ -141,7 +141,7 @@ class IDF_Form_IssueCreate extends Pluf_Form $conf = new IDF_Conf(); $conf->setProject($this->project); $onemax = array(); - foreach (split(',', $conf->getVal('labels_issue_one_max', IDF_Form_IssueTrackingConf::init_one_max)) as $class) { + foreach (explode(',', $conf->getVal('labels_issue_one_max', IDF_Form_IssueTrackingConf::init_one_max)) as $class) { if (trim($class) != '') { $onemax[] = mb_strtolower(trim($class)); } diff --git a/src/IDF/Form/UpdateUpload.php b/src/IDF/Form/UpdateUpload.php index 5b9e19d..f25c81f 100644 --- a/src/IDF/Form/UpdateUpload.php +++ b/src/IDF/Form/UpdateUpload.php @@ -86,7 +86,7 @@ class IDF_Form_UpdateUpload extends Pluf_Form $conf = new IDF_Conf(); $conf->setProject($this->project); $onemax = array(); - foreach (split(',', $conf->getVal('labels_download_one_max', IDF_Form_UploadConf::init_one_max)) as $class) { + foreach (explode(',', $conf->getVal('labels_download_one_max', IDF_Form_UploadConf::init_one_max)) as $class) { if (trim($class) != '') { $onemax[] = mb_strtolower(trim($class)); } diff --git a/src/IDF/Form/Upload.php b/src/IDF/Form/Upload.php index 1861603..7379e2a 100644 --- a/src/IDF/Form/Upload.php +++ b/src/IDF/Form/Upload.php @@ -96,7 +96,7 @@ class IDF_Form_Upload extends Pluf_Form $conf = new IDF_Conf(); $conf->setProject($this->project); $onemax = array(); - foreach (split(',', $conf->getVal('labels_download_one_max', IDF_Form_UploadConf::init_one_max)) as $class) { + foreach (explode(',', $conf->getVal('labels_download_one_max', IDF_Form_UploadConf::init_one_max)) as $class) { if (trim($class) != '') { $onemax[] = mb_strtolower(trim($class)); } diff --git a/src/IDF/Form/WikiCreate.php b/src/IDF/Form/WikiCreate.php index 22ecaff..9cca55a 100644 --- a/src/IDF/Form/WikiCreate.php +++ b/src/IDF/Form/WikiCreate.php @@ -127,7 +127,7 @@ Add your content here. Format your content with: $conf = new IDF_Conf(); $conf->setProject($this->project); $onemax = array(); - foreach (split(',', $conf->getVal('labels_wiki_one_max', IDF_Form_WikiConf::init_one_max)) as $class) { + foreach (explode(',', $conf->getVal('labels_wiki_one_max', IDF_Form_WikiConf::init_one_max)) as $class) { if (trim($class) != '') { $onemax[] = mb_strtolower(trim($class)); } diff --git a/src/IDF/Form/WikiUpdate.php b/src/IDF/Form/WikiUpdate.php index bfa9c4e..b043511 100644 --- a/src/IDF/Form/WikiUpdate.php +++ b/src/IDF/Form/WikiUpdate.php @@ -138,7 +138,7 @@ class IDF_Form_WikiUpdate extends Pluf_Form $conf = new IDF_Conf(); $conf->setProject($this->project); $onemax = array(); - foreach (split(',', $conf->getVal('labels_wiki_one_max', IDF_Form_WikiConf::init_one_max)) as $class) { + foreach (explode(',', $conf->getVal('labels_wiki_one_max', IDF_Form_WikiConf::init_one_max)) as $class) { if (trim($class) != '') { $onemax[] = mb_strtolower(trim($class)); }