Skip to content

Commit

Permalink
Minor cleanup to some code in installation/upgrade which didn't conta…
Browse files Browse the repository at this point in the history
…in a closing tag (/ was missing)
  • Loading branch information
dleffler committed Jul 9, 2011
1 parent 6e7ec23 commit 8d5ec8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions install/pages/install-3.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<thead>
<tr>
<th colspan=2><?php echo gt('Results'); ?></th>
<tr>
<thead>
</tr>
</thead>
<tbody>
<?php

Expand Down Expand Up @@ -69,7 +69,7 @@ function isAllGood($str) {

if ($passed) {
//set connection encoding, works only on mySQL > 4.1
if($config["db_engine"] == "mysql") {
if($config["db_engine"] == "mysqli") {
if (!defined("DB_ENCODING")) define("DB_ENCODING", $config["DB_ENCODING"]);
}
$db = exponent_database_connect($config['db_user'],$config['db_pass'],$config['db_host'],$config['db_name'],$config['db_engine'],1);
Expand Down Expand Up @@ -192,7 +192,6 @@ function isAllGood($str) {
}
}


if ($passed) {
echoStart($i18n['check_drop'].':');
$db->dropTable($tablename);
Expand Down
2 changes: 1 addition & 1 deletion install/popup.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<html>
<head>
<title><?php echo $i18n['title']; ?></title>
<link rel="stylesheet" title="exponent" href="page.css" />
<link rel="stylesheet" title="exponent" href="style.css" />
<link rel="stylesheet" href="<?php echo PATH_RELATIVE; ?>framework/core/assets/css/tables.css" />
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo LANG_CHARSET; ?>" />
<meta name="Generator" value="Exponent Content Management System" />
Expand Down
4 changes: 2 additions & 2 deletions install/upgrades/install_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function upgrade() {
if (file_exists($dirpath)) {
$def_dir = opendir($dirpath);
while (($def = readdir($def_dir)) !== false) {
eDebug("$dirpath/$def");
// eDebug("$dirpath/$def");
if (is_readable("$dirpath/$def") && is_file("$dirpath/$def") && substr($def,-4,4) == ".php" && substr($def,-9,9) != ".info.php") {
$tablename = substr($def,0,-4);
$dd = include("$dirpath/$def");
Expand Down Expand Up @@ -188,7 +188,7 @@ function upgrade() {
<?php
}
?>
<tbody>
</tbody>
</table>
<?php
if ($line == 0) {
Expand Down
1 change: 1 addition & 0 deletions install/upgrades/version_tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function description() { return "Beginning with Exponent 2.0.0 Beta3, the system

/**
* additional test(s) to see if upgrade script should be run
* @param $version
* @return bool
*/
function needed($version) {
Expand Down

0 comments on commit 8d5ec8f

Please sign in to comment.