Index: trunk/extensions/SemanticMediaWiki/maintenance/SMW_setup.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | * Usage: |
15 | 15 | * php SMW_refreshData.php [options...] |
16 | 16 | * |
17 | | - * -b <backend> Execute the operation for the storage backend of the given name |
| 17 | + * -b <backend> Execute the operation for the storage backend of the given name |
18 | 18 | * -user <dbuser> Database user account to use for chaning DB layout |
19 | 19 | * -password <dbpassword> Password for user account |
20 | 20 | * NOTE: specifying user credentials in a command line call will usually store them |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | * |
25 | 25 | * --delete Delete all SMW data, uninstall the selected storage backend. This is useful |
26 | 26 | * when moving to a new storage engine, and in the rare case of unsinstalling |
27 | | - * SMW. Deleted data can be recreated using this script (setup) and |
| 27 | + * SMW. Deleted data can be recreated using this script (setup) and |
28 | 28 | * SMW_refreshData.php but this may take some time. |
29 | 29 | * @author Markus Krötzsch |
30 | 30 | * @file |
— | — | @@ -62,11 +62,10 @@ |
63 | 63 | $wgDBpassword = $options['password']; |
64 | 64 | } |
65 | 65 | |
| 66 | +$alternativestore = false; |
66 | 67 | if ( array_key_exists( 'b', $options ) ) { |
67 | 68 | if ($smwgDefaultStore != $options['b']) { |
68 | 69 | $alternativestore = true; |
69 | | - } else { |
70 | | - $alternativestore = false; |
71 | 70 | } |
72 | 71 | $smwgDefaultStore = $options['b']; |
73 | 72 | print "\nSelected storage " . $smwgDefaultStore . " for update!\n\n"; |
— | — | @@ -74,7 +73,7 @@ |
75 | 74 | |
76 | 75 | |
77 | 76 | global $smwgIP; |
78 | | -if (! isset($smwgIP)) |
| 77 | +if (! isset($smwgIP)) |
79 | 78 | $smwgIP = dirname(__FILE__) . '/..'; |
80 | 79 | |
81 | 80 | require_once($smwgIP . '/includes/SMW_GlobalFunctions.php'); |