Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:gallery/gallery3
Browse files Browse the repository at this point in the history
  • Loading branch information
bharat committed Jan 29, 2010
2 parents 45cdac9 + c4e3604 commit 3e2adae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/comment/models/comment.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function author_url() {
/** /**
* Add some custom per-instance rules. * Add some custom per-instance rules.
*/ */
public function validate($array=null) { public function validate(Validation $array=null) {
// validate() is recursive, only modify the rules on the outermost call. // validate() is recursive, only modify the rules on the outermost call.
if (!$array) { if (!$array) {
$this->rules = array( $this->rules = array(
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/models/item.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ function descendants($limit=null, $offset=null, $where=array(), $order_by=null)
/** /**
* Specify our rules here so that we have access to the instance of this model. * Specify our rules here so that we have access to the instance of this model.
*/ */
public function validate($array=null) { public function validate(Validation $array=null) {
if (!$array) { if (!$array) {
$this->rules = array( $this->rules = array(
"album_cover_item_id" => array("callbacks" => array(array($this, "valid_album_cover"))), "album_cover_item_id" => array("callbacks" => array(array($this, "valid_album_cover"))),
Expand Down
2 changes: 1 addition & 1 deletion modules/user/models/group.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function users() {
/** /**
* Specify our rules here so that we have access to the instance of this model. * Specify our rules here so that we have access to the instance of this model.
*/ */
public function validate($array=null) { public function validate(Validation $array=null) {
// validate() is recursive, only modify the rules on the outermost call. // validate() is recursive, only modify the rules on the outermost call.
if (!$array) { if (!$array) {
$this->rules = array( $this->rules = array(
Expand Down
2 changes: 1 addition & 1 deletion modules/user/models/user.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function groups() {
/** /**
* Specify our rules here so that we have access to the instance of this model. * Specify our rules here so that we have access to the instance of this model.
*/ */
public function validate($array=null) { public function validate(Validation $array=null) {
// validate() is recursive, only modify the rules on the outermost call. // validate() is recursive, only modify the rules on the outermost call.
if (!$array) { if (!$array) {
$this->rules = array( $this->rules = array(
Expand Down

0 comments on commit 3e2adae

Please sign in to comment.