Skip to content
Snippets Groups Projects
Commit 9f8d850c authored by Peter Rotich's avatar Peter Rotich
Browse files

oops: Fix help topic create

parent 4242c149
No related branches found
No related tags found
No related merge requests found
...@@ -52,15 +52,6 @@ class Topic extends VerySimpleModel { ...@@ -52,15 +52,6 @@ class Topic extends VerySimpleModel {
const FLAG_CUSTOM_NUMBERS = 0x0001; const FLAG_CUSTOM_NUMBERS = 0x0001;
function __onload() {
global $cfg;
// Handle upgrade case where sort has not yet been defined
if (!$this->ht['sort'] && $cfg->getTopicSortMode() == 'a') {
static::updateSortOrder();
}
}
function asVar() { function asVar() {
return $this->getName(); return $this->getName();
} }
...@@ -260,7 +251,7 @@ class Topic extends VerySimpleModel { ...@@ -260,7 +251,7 @@ class Topic extends VerySimpleModel {
static function __create($vars, &$errors) { static function __create($vars, &$errors) {
$topic = self::create(); $topic = self::create();
$topic->save($vars, $errors); $topic->update($vars, $errors);
return $topic; return $topic;
} }
......
...@@ -30,6 +30,7 @@ class mysqli_stmt { ...@@ -30,6 +30,7 @@ class mysqli_stmt {
class mysqli_result { class mysqli_result {
function free() {} function free() {}
function free_result() {} function free_result() {}
function fetch_fields() {}
} }
class ReflectionClass { class ReflectionClass {
...@@ -122,4 +123,32 @@ class IntlBreakIterator { ...@@ -122,4 +123,32 @@ class IntlBreakIterator {
class SqlFunction { class SqlFunction {
static function NOW() {} static function NOW() {}
} }
class SqlExpression {
static function plus() {}
}
class SqlInterval {
static function MINUTE() {}
static function DAY() {}
}
class SqlAggregate {
static function COUNT() {}
}
class Q {
static function ANY() {}
}
class IntlDateFormatter {
function setPattern() {}
function getPattern() {}
function parse() {}
}
class ResourceBundle {
function getLocales() {}
}
?> ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment