aboutsummaryrefslogtreecommitdiffstats
path: root/build/package.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-03-30 15:02:46 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-03-30 15:09:35 +0200
commitbadb16e68e201c42d30d35abba28b47e026d0a81 (patch)
tree876476fdfa4419b9ee928cee95d4132c40f45722 /build/package.php
parentb8cb407da9feb95533c8384db6e5ad768a67774a (diff)
downloadforums-badb16e68e201c42d30d35abba28b47e026d0a81.tar
forums-badb16e68e201c42d30d35abba28b47e026d0a81.tar.gz
forums-badb16e68e201c42d30d35abba28b47e026d0a81.tar.bz2
forums-badb16e68e201c42d30d35abba28b47e026d0a81.tar.xz
forums-badb16e68e201c42d30d35abba28b47e026d0a81.zip
[ticket/12326] Correctly format update/index.php and remove php closing tag
PHPBB3-12326
Diffstat (limited to 'build/package.php')
-rwxr-xr-xbuild/package.php16
1 files changed, 5 insertions, 11 deletions
diff --git a/build/package.php b/build/package.php
index 00693fbe57..00930abe65 100755
--- a/build/package.php
+++ b/build/package.php
@@ -276,29 +276,23 @@ $update_info = array(
if (sizeof($file_contents['all']))
{
- $index_contents .= '\'files\' => array(\'' . implode("',\n\t'", $file_contents['all']) . '\'),
-';
+ $index_contents .= "\t'files' => array(\n\t\t'" . implode("',\n\t\t'", $file_contents['all']) . "',\n\t),\n";
}
else
{
- $index_contents .= '\'files\' => array(),
-';
+ $index_contents .= "\t'files' => array(),\n";
}
if (sizeof($file_contents['binary']))
{
- $index_contents .= '\'binary\' => array(\'' . implode("',\n\t'", $file_contents['binary']) . '\'),
-';
+ $index_contents .= "\t'binary' => array(\n\t\t'" . implode("',\n\t\t'", $file_contents['binary']) . "',\n\t),\n";
}
else
{
- $index_contents .= '\'binary\' => array(),
-';
+ $index_contents .= "\t'binary' => array(),\n";
}
- $index_contents .= ');
-
-?' . '>';
+ $index_contents .= ");\n";
$fp = fopen($dest_filename_dir . '/install/update/index.php', 'wt');
fwrite($fp, $index_contents);