This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 188d548c380cbf3de942575346699c3270de5b4b (commit)
from 72e4db6641375fc4a5163181f07a1367af15e176 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=188d548c380cbf3de942575346699c3270de5b4b
commit 188d548c380cbf3de942575346699c3270de5b4b
Author: Marc-Etienne Vargenau <[email protected]>
Date: Mon May 8 21:28:05 2017 +0200
We are in PHP 5
diff --git a/src/www/survey/include/SurveyHTML.class.php
b/src/www/survey/include/SurveyHTML.class.php
index 48d2310..5afb691 100644
--- a/src/www/survey/include/SurveyHTML.class.php
+++ b/src/www/survey/include/SurveyHTML.class.php
@@ -670,7 +670,7 @@ class SurveyHTML extends FFError {
foreach ($words as $word) {
// if we have a stupidly
strange word with lots of letters, we'll make a new line for it and split it
if ((strlen($word)>100) &&
((strlen($word)+$linelength)>100)) {
- $chunks =
$this->split_str($word,50);
+ $chunks =
$this->str_split($word,50);
foreach ($chunks as
$chunk) {
$ret .= $chunk;
$ret .= "<br
/>";
@@ -705,21 +705,6 @@ class SurveyHTML extends FFError {
}
/**
- * split_str - works as str_split of PHP5 - Converts a string to an
array.
- *
- * @param string $str
- * @param int $split_lengt length of chunk
- * @return array array of chunks of the string
- */
- function split_str($str, $split_lengt=1) {
- $cnt = strlen($str);
- for ($i=0;$i<$cnt;$i+=$split_lengt) {
- $rslt[]= substr($str,$i,$split_lengt);
- }
- return $rslt;
- }
-
- /**
* _makeBar - make Precentage bar as a cell in a table. Starts with
<tr> and ends with </tr>
*
* @param string $name Name
-----------------------------------------------------------------------
Summary of changes:
src/www/survey/include/SurveyHTML.class.php | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits