equal
deleted
inserted
replaced
71 } |
71 } |
72 else |
72 else |
73 { |
73 { |
74 throw new Exception('SQL file doesn\'t exist'); |
74 throw new Exception('SQL file doesn\'t exist'); |
75 } |
75 } |
|
76 |
76 } |
77 } |
77 $this->sql_array = false; |
78 $this->sql_array = false; |
78 $this->tpl_strings = array(); |
79 $this->tpl_strings = array(); |
|
80 |
|
81 // convert \r\n in the schema to \n, in case some FTP client or zip utility ran unix2dos for us |
|
82 // thanks to InvisGhost for reporting this error |
|
83 $this->sql_string = str_replace("\r\n", "\n", $this->sql_string); |
79 } |
84 } |
80 |
85 |
81 /** |
86 /** |
82 * Sets template variables. |
87 * Sets template variables. |
83 * @param array Associative array of template variables to assign |
88 * @param array Associative array of template variables to assign |