summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhenning.noren <henning.noren@gmail.com>2007-01-04 20:53:58 +0100
committerhenning.noren <henning.noren@gmail.com>2007-01-04 20:53:58 +0100
commit97c91fb2c2297b64de229b95712c1fdf2b74e222 (patch)
tree40a70948ed703a3b846a57c4abe26f3c8ab49d5c
parent3edf3f08f268af55c6ac824af774ccec19b893f4 (diff)
downloadrpg-97c91fb2c2297b64de229b95712c1fdf2b74e222.tar.gz
rpg-97c91fb2c2297b64de229b95712c1fdf2b74e222.tar.bz2
faster_indent.patch
Replaces a print-loop with str_repeat concatenated with the final output darcs-hash:20070104195358-d2a3e-a1f74b5380e7426b3f7e61c76d58e36363971eee.gz
-rw-r--r--inc/common.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/common.php b/inc/common.php
index 21dea4d5f..2c200cf5a 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -40,8 +40,7 @@ function hsc($string){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function ptln($string,$intend=0){
- for($i=0; $i<$intend; $i++) print ' ';
- echo "$string\n";
+ echo str_repeat(' ', $intend)."$string\n";
}
/**