Skip to content

Commit

Permalink
Fix bug caused by previous commit, 42f01fe. Replace instances of _Par…
Browse files Browse the repository at this point in the history
…ent->Database with the Symphony instance (Fixes #414)
  • Loading branch information
brendo committed Oct 20, 2010
1 parent 42f01fe commit 6c8b8b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion symphony/content/content.blueprintspages.php
Expand Up @@ -196,7 +196,7 @@ public function __viewTemplate() {
$is_child = strrpos($this->_context[1],'_');
$pagename = ($is_child != false ? substr($this->_context[1], $is_child + 1) : $this->_context[1]);

$pagedata = $this->_Parent->Database->fetchRow(0, "
$pagedata = Symphony::Database()->fetchRow(0, "
SELECT
p.*
FROM
Expand Down
4 changes: 2 additions & 2 deletions symphony/content/content.systemauthors.php
Expand Up @@ -490,13 +490,13 @@ function __actionEdit(){
# Description: Prior to deleting an author. ID is provided.
//$ExtensionManager->notifyMembers('Delete', getCurrentPage(), array('author_id' => $author_id));

if($isOwner) {
if(!$isOwner) {
AuthorManager::delete($author_id);
redirect(URL . '/symphony/system/authors/');
}

else {
$this->pageAlert(__('You cannot remove yourself.'), Alert::ERROR);
$this->pageAlert(__('You cannot remove yourself as you are the active Author.'), Alert::ERROR);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion symphony/lib/toolkit/class.fieldmanager.php
Expand Up @@ -95,7 +95,7 @@ public function fetchFieldIDFromElementName($element_name, $section_id=NULL){
//}

public function fetchHandleFromElementName($id){
return $this->_Parent->Database->fetchVar('element_name', 0, "SELECT `element_name` FROM `tbl_fields` WHERE `id` = '$id' LIMIT 1");
return Symphony::Database()->fetchVar('element_name', 0, "SELECT `element_name` FROM `tbl_fields` WHERE `id` = '$id' LIMIT 1");
}

public function fetchTypes(){
Expand Down

0 comments on commit 6c8b8b9

Please sign in to comment.