performance MDL-25637 converted tabs to spaces

This commit is contained in:
Aparup Banerjee
2011-01-24 15:49:18 +08:00
parent b692e4aa29
commit 2b9ce62e23
7 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -300,7 +300,7 @@ class ouwiki_line {
$pos=0;
while(true) {
// Find a non-space
$strlendata = strlen($data);
$strlendata = strlen($data);
for(;$pos < $strlendata && substr($data,$pos,1)===' ';$pos++) ;
if($pos==$strlendata) {
// No more content
@@ -528,7 +528,7 @@ class ouwiki_changes {
// resulting array will be -,-,3,3,3,-,0
$squidges=array();
$lowest=0;
$countdiff = count($diff);
$countdiff = count($diff);
for($index1=$countdiff;$index1>=1;$index1--) {
$index2=$diff[$index1];
if($index2===0) {