Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
9f8d850c
Commit
9f8d850c
authored
10 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
oops: Fix help topic create
parent
4242c149
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/class.topic.php
+1
-10
1 addition, 10 deletions
include/class.topic.php
setup/test/tests/stubs.php
+29
-0
29 additions, 0 deletions
setup/test/tests/stubs.php
with
30 additions
and
10 deletions
include/class.topic.php
+
1
−
10
View file @
9f8d850c
...
@@ -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
->
sav
e
(
$vars
,
$errors
);
$topic
->
updat
e
(
$vars
,
$errors
);
return
$topic
;
return
$topic
;
}
}
...
...
This diff is collapsed.
Click to expand it.
setup/test/tests/stubs.php
+
29
−
0
View file @
9f8d850c
...
@@ -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
()
{}
}
?>
?>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment