mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 14:18:46 +02:00
MINOR Merged r68155 from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@68164 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d26f08b481
commit
9e145705bc
@ -33,9 +33,9 @@ class ModelAsController extends Controller implements NestedController {
|
||||
if($this->urlParams['URLSegment']) {
|
||||
$SQL_URLSegment = Convert::raw2sql($this->urlParams['URLSegment']);
|
||||
if (Translatable::is_enabled()) {
|
||||
$child = Translatable::get_one("SiteTree", "\"URLSegment\" = '$SQL_URLSegment'", false);
|
||||
$child = Translatable::get_one("SiteTree", "SiteTree."\"URLSegment\" = '$SQL_URLSegment'", false);
|
||||
} else {
|
||||
$child = DataObject::get_one("SiteTree", "\"URLSegment\" = '$SQL_URLSegment'", false);
|
||||
$child = DataObject::get_one("SiteTree", "SiteTree.\"URLSegment\" = '$SQL_URLSegment'", false);
|
||||
}
|
||||
if(!$child) {
|
||||
if($child = $this->findOldPage($SQL_URLSegment)) {
|
||||
|
@ -433,6 +433,13 @@ class PDODatabase extends Database {
|
||||
}
|
||||
$stmt->execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo implement renameField()
|
||||
*/
|
||||
public function renameField($tableName, $oldName, $newName) {
|
||||
user_error('PDODatabase::renameField() - Not implemented', E_USER_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an index on a table.
|
||||
|
Loading…
Reference in New Issue
Block a user