summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-01-15 19:50:13 +0100
committerAndreas Gohr <andi@splitbrain.org>2010-01-15 19:50:13 +0100
commit49eb6e38061d744f4a35b78082dce49fa35f79c8 (patch)
treeababa433d605b4b15ca33fb6b7dd6988b6411b4c /install.php
parent33e0cc3c9762a97626460911f3415b1564e564c3 (diff)
downloadrpg-49eb6e38061d744f4a35b78082dce49fa35f79c8.tar.gz
rpg-49eb6e38061d744f4a35b78082dce49fa35f79c8.tar.bz2
some more coding standard compliance updates
Diffstat (limited to 'install.php')
-rw-r--r--install.php25
1 files changed, 12 insertions, 13 deletions
diff --git a/install.php b/install.php
index 414d3e99e..a9edbd445 100644
--- a/install.php
+++ b/install.php
@@ -202,16 +202,16 @@ function print_form($d){
}
function print_retry() {
- global $lang;
- global $LC;
-?>
+ global $lang;
+ global $LC;
+ ?>
<form action="" method="get">
<fieldset>
<input type="hidden" name="l" value="<?php echo $LC ?>" />
<input class="button" type="submit" value="<?php echo $lang['i_retry'];?>" />
</fieldset>
</form>
-<?php
+ <?php
}
/**
@@ -360,7 +360,6 @@ function check_configs(){
'auth' => DOKU_LOCAL.'acl.auth.php'
);
-
// main dokuwiki config file (conf/dokuwiki.php) must not have been modified
$installation_hash = md5(preg_replace("/(\015\012)|(\015)/","\012",
@file_get_contents(DOKU_CONF.'dokuwiki.php')));
@@ -437,8 +436,8 @@ function check_functions(){
'preg_replace file_get_contents htmlspecialchars_decode');
if (!function_exists('mb_substr')) {
- $funcs[] = 'utf8_encode';
- $funcs[] = 'utf8_decode';
+ $funcs[] = 'utf8_encode';
+ $funcs[] = 'utf8_decode';
}
foreach($funcs as $func){
@@ -505,12 +504,12 @@ function print_errors(){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function remove_magic_quotes(&$array) {
- foreach (array_keys($array) as $key) {
- if (is_array($array[$key])) {
- remove_magic_quotes($array[$key]);
- }else {
- $array[$key] = stripslashes($array[$key]);
+ foreach (array_keys($array) as $key) {
+ if (is_array($array[$key])) {
+ remove_magic_quotes($array[$key]);
+ }else {
+ $array[$key] = stripslashes($array[$key]);
+ }
}
- }
}