Joshua Dickerson commited on 2011-10-12 16:46:36
Showing 1 changed files, with 10 additions and 9 deletions.
... | ... |
@@ -89,7 +89,7 @@ class tbg_coverter |
89 | 89 |
{ |
90 | 90 |
return array( |
91 | 91 |
'mantis_loc' => array('type' => 'text', 'required' => true, 'validate' => 'return file_exists($data);'), |
92 |
- 'tbg_loc' => array('type' => 'text', 'required' => true, 'default' => dirname(__FILE__), 'validate' => 'return file_exists($data);') |
|
92 |
+ 'tbg_loc' => array('type' => 'text', 'required' => true, 'default' => dirname(__FILE__), 'validate' => 'return file_exists($data);'), |
|
93 | 93 |
// @TODO: Make this validate the password. |
94 | 94 |
'tbg_db_pass' => array('type' => 'password', 'required' => true, 'validate' => true,), |
95 | 95 |
); |
... | ... |
@@ -120,7 +120,7 @@ class tbg_coverter |
120 | 120 |
*/ |
121 | 121 |
private function setSettings() |
122 | 122 |
{ |
123 |
- $settings = $this->converterSettings() |
|
123 |
+ $settings = $this->converterSettings(); |
|
124 | 124 |
$new_settings = array(); |
125 | 125 |
foreach ($settings as $key => $details) |
126 | 126 |
{ |
... | ... |
@@ -458,9 +458,10 @@ class mbt_to_tbg extends tbg_converter |
458 | 458 |
{ |
459 | 459 |
$this->db->query(' |
460 | 460 |
INSERT INTO ' . $this->tbg_db_prefix . 'issues (id, project_id, title, assigned_to, duplicate_of, posted, last_updated, state, category, resolution, priority, severity, reproducability) |
461 |
- VALUES (' . $row['id'] . ', ' . $row['project_id'] . ', "' . $row['title'] . '", ' . $row['assigned_to'] . ', ' . $row['duplicate_of'] . ', ' . $row['posted'] . ', ' . $row['last_updated'] . ', ' . $row['state'] . ', ' . $row['category'] . ', ' . $row['category'] . ', ' . $row['resolution'] . ', ' . $row['priority'] . ', ' . $row['severity'] . ', ' . $row['reproducability'] . ')'); |
|
461 |
+ VALUES (' . $row['id'] . ', ' . $row['project_id'] . ', "' . $row['title'] . '", ' . $row['assigned_to'] . ', ' . $row['duplicate_of'] . ', ' . $row['posted'] . ', ' . $row['last_updated'] . ', ' . $row['state'] . ', ' . $row['category'] . ', ' . $row['category'] . ', ' . $row['resolution'] . ', ' . $row['priority'] . ', ' . $row['severity'] . ', ' . $row['reproducability'] . ') |
|
462 |
+ '); |
|
462 | 463 |
|
463 |
- if (!isset(builds[$row['version']])) |
|
464 |
+ if (!isset($builds[$row['version']])) |
|
464 | 465 |
{ |
465 | 466 |
$this->db->query(' |
466 | 467 |
INSERT INTO (' . $this->tbg_db_prefix . 'builds (name) VALUES (' . $row['version'] . ')'); |
... | ... |
@@ -533,7 +534,7 @@ class mbt_to_tbg extends tbg_converter |
533 | 534 |
* Attachments, the pain of our every existence) |
534 | 535 |
* |
535 | 536 |
*/ |
536 |
- function doStep8 |
|
537 |
+ function doStep8() |
|
537 | 538 |
{ |
538 | 539 |
$step_size = 100; |
539 | 540 |
$substep = $this->getSubStep(__FUNCTION__); |
... | ... |
@@ -599,17 +600,17 @@ class tbg_converter_wrapper |
599 | 600 |
<html xmlns="http://www.w3.org/1999/html"> |
600 | 601 |
<head> |
601 | 602 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
602 |
- <title>', self:$page_title, '</title> |
|
603 |
+ <title>', self::$page_title, '</title> |
|
603 | 604 |
<style type="text/css"> |
604 | 605 |
<!-- |
605 | 606 |
--> |
606 |
- </style>' : ''), ' |
|
607 |
+ </style> |
|
607 | 608 |
</head> |
608 | 609 |
<body> |
609 | 610 |
<div> |
610 | 611 |
<div style="padding: 10px; padding-right: 0px; padding-left: 0px; width:98% "> |
611 | 612 |
<div style="padding-left: 200px; padding-right: 0px;"> |
612 |
- <h1>', self:$page_title, '</h1> |
|
613 |
+ <h1>', self::$page_title, '</h1> |
|
613 | 614 |
<div class="panel" style="padding-right: 0px; white-space: normal; overflow: hidden;">'; |
614 | 615 |
} |
615 | 616 |
|
... | ... |
@@ -617,7 +618,7 @@ class tbg_converter_wrapper |
617 | 618 |
* The lower part of the theme. |
618 | 619 |
* |
619 | 620 |
*/ |
620 |
- public static function lower(); |
|
621 |
+ public static function lower() |
|
621 | 622 |
{ |
622 | 623 |
echo ' |
623 | 624 |
</div> |
624 | 625 |