Skip to content

Commit

Permalink
Fixes: 0001252: INSERTANS replaced only once in group title & descrip…
Browse files Browse the repository at this point in the history
…tion

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/stable_plus@3322 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Gustavo San Roman committed Sep 28, 2007
1 parent cf40bb3 commit 29adcd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.php
Expand Up @@ -1879,7 +1879,7 @@ function templatereplace($line)
if (strpos($line, "{PERCENTCOMPLETE}") !== false) $line=str_replace("{PERCENTCOMPLETE}", $percentcomplete, $line);
if (strpos($line, "{GROUPNAME}") !== false) $line=str_replace("{GROUPNAME}", $groupname, $line);
if (strpos($line, "{GROUPDESCRIPTION}") !== false) $line=str_replace("{GROUPDESCRIPTION}", $groupdescription, $line);
if (strpos($line, "{INSERTANS:") !== false)
while (strpos($line, "{INSERTANS:") !== false)
{
$answreplace=substr($line, strpos($line, "{INSERTANS:"), strpos($line, "}", strpos($line, "{INSERTANS:"))-strpos($line, "{INSERTANS:")+1);
$answreplace2=substr($answreplace, 11, strpos($answreplace, "}", strpos($answreplace, "{INSERTANS:"))-11);
Expand Down

0 comments on commit 29adcd6

Please sign in to comment.