Skip to content
Snippets Groups Projects
Commit d383856c authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix PHP warning

parent 42ddeea3
No related branches found
No related tags found
No related merge requests found
......@@ -1078,7 +1078,7 @@ class QuerySet implements IteratorAggregate, ArrayAccess, Serializable, Countabl
return $this->_count = $compiler->compileCount($this);
}
function toSql($compiler, $model, $alias) {
function toSql($compiler, $model, $alias=false) {
// FIXME: Force root model of the compiler to $model
$exec = $this->getQuery(array('compiler' => get_class($compiler),
'parent' => $compiler, 'subquery' => true));
......@@ -1229,7 +1229,7 @@ class {$classname} extends VerySimpleModel {
}
static function getSqlAddParams(\$compiler) {
return static::\$queryset->toSql(\$compiler);
return static::\$queryset->toSql(\$compiler, self::\$queryset->model);
}
}
EOF;
......
......@@ -984,6 +984,7 @@ img.avatar {
}
.thread-body .attachments .filesize {
margin-left: 0.5em;
line-height: 1em;
}
.thread-body .attachment-info {
margin-right: 10px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment