Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor changes to combine.php

  • Loading branch information...
commit 3688e8fa921f24f74d2adfeaa695162a56195507 1 parent f8957ba
Eddie Monge authored
Showing with 9 additions and 11 deletions.
  1. +8 −9 combine.php
  2. +1 −2  js/index.php
View
17 combine.php
@@ -1,18 +1,17 @@
<?php
-if (!isset($type) || !isset($elements))
+if ( ! isset($type) || ! isset($elements) )
{
- echo "\$type and \$elements must be specified!";
+ echo '$type and $elements must be specified!';
exit;
}
$contents = '';
-reset($elements);
-while (list(,$element) = each($elements)) {
- $contents .= "\n\n" . file_get_contents($element);
+
+foreach ( $elements as $file ) {
+ $contents .= file_get_contents($file). "\n\n";
}
-header("Content-Type: " . $type);
-header("Content-Length: " . strlen($contents));
-echo $contents;
-?>
+header('Content-Type: ' . $type);
+header('Content-Length: ' . strlen($contents));
+echo $contents;
View
3  js/index.php
@@ -30,5 +30,4 @@
'jquery.mobile.init.js'
);
-include('../combine.php');
-?>
+include('../combine.php');
Please sign in to comment.
Something went wrong with that request. Please try again.