Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
helpdesk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web2project
helpdesk
Commits
bd921161
Commit
bd921161
authored
Jan 20, 2016
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup.php: use w2p_Core_Setup() functions for remove and install
parent
8f4465c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
setup.php
setup.php
+5
-9
No files found.
setup.php
View file @
bd921161
...
...
@@ -203,10 +203,7 @@ class CSetupHelpDesk extends w2p_Core_Setup
return
false
;
}
global
$AppUI
;
$perms
=
$AppUI
->
acl
();
return
$perms
->
registerModule
(
'Help Desk'
,
'helpdesk'
);
return
parent
::
install
();
}
public
function
remove
()
...
...
@@ -252,7 +249,8 @@ class CSetupHelpDesk extends w2p_Core_Setup
$q
->
addWhere
(
"mod_directory = 'helpdesk'"
);
$q
->
exec
();
return
$success
;
if
(
!
$success
)
return
$success
;
return
parent
::
remove
();
}
public
function
upgrade
(
$old_version
)
...
...
@@ -347,10 +345,8 @@ class CSetupHelpDesk extends w2p_Core_Setup
$success
=
0
;
}
global
$AppUI
;
$perms
=
$AppUI
->
acl
();
return
$perms
->
registerModule
(
'Help Desk'
,
'helpdesk'
)
;
return
true
;
}
public
function
configure
()
...
...
@@ -366,7 +362,7 @@ class CSetupHelpDesk extends w2p_Core_Setup
$q
=
new
w2p_Database_Query
();
$sql
=
"( "
.
" `helpdesk_config` varchar(25) NOT NULL, "
.
" `helpdesk_value` varchar(25), "
.
" `helpdesk_value` varchar(25
6
), "
.
" PRIMARY KEY (`helpdesk_config`) "
.
") ENGINE = MYISAM DEFAULT CHARSET = utf8"
;
$q
->
createTable
(
'helpdesk_config'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment