Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop' of github.com:EllisLab/CodeIgniter into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed Aug 29, 2011
2 parents 4c90723 + 4f17de9 commit 70e61b5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions application/config/user_agents.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
'sendo' => "Sendo",

// Operating Systems
'android' => "Android",
'symbian' => "Symbian",
'SymbianOS' => "SymbianOS",
'elaine' => "Palm",
Expand Down
2 changes: 1 addition & 1 deletion system/core/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @var string
*
*/
define('CI_VERSION', '2.0.2');
define('CI_VERSION', '2.1.0-dev');

/**
* CodeIgniter Branch (Core = TRUE, Reactor = FALSE)
Expand Down
2 changes: 1 addition & 1 deletion system/libraries/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct($config = array())
}

// If not set, set it
$this->_migration_path == '' OR $this->_migration_path = APPPATH . 'migrations/';
$this->_migration_path == '' AND $this->_migration_path = APPPATH . 'migrations/';

// Add trailing slash if not set
$this->_migration_path = rtrim($this->_migration_path, '/').'/';
Expand Down
1 change: 1 addition & 0 deletions user_guide/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ <h2>Version 2.1.0 (planned)</h2>
<ul>
<li>General Changes
<ul>
<li class="reactor">Added Android to the list of user agents.</li>
<li class="reactor">Callback validation rules can now accept parameters like any other validation rule.</li>
<li class="reactor">Ability to log certain error types, not all under a threshold.</li>
<li class="reactor">Added html_escape() to <a href="general/common_functions.html">Common functions</a> to escape HTML output for preventing XSS.</li>
Expand Down
7 changes: 2 additions & 5 deletions user_guide/database/active_record.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ <h1><a name="select">&nbsp;</a>Selecting Data</h1>

<p>The following functions allow you to build SQL <strong>SELECT</strong> statements.</p>

<p><strong>Note: If you are using PHP 5 you can use method chaining for more compact syntax. This is described at the end of the page.</strong></p>


<h2>$this->db->get();</h2>

<p>Runs the selection query and returns the result. Can be used by itself to retrieve all records from a table:</p>
Expand Down Expand Up @@ -532,7 +529,7 @@ <h2>$this->db->insert_batch();</h2>
<p>Generates an insert string based on the data you supply, and runs the query. You can either pass an
<strong>array</strong> or an <strong>object</strong> to the function. Here is an example using an array:</p>

<code>
<code>
$data = array(<br/>
&nbsp;&nbsp;&nbsp;array(<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'title' => 'My title' ,<br />
Expand All @@ -544,7 +541,7 @@ <h2>$this->db->insert_batch();</h2>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'name' => 'Another Name' ,<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'date' => 'Another date'<br />
&nbsp;&nbsp;&nbsp;)<br/>
);<br />
);<br />
<br />
$this->db->update_batch('mytable', $data);
<br /><br />
Expand Down

0 comments on commit 70e61b5

Please sign in to comment.