Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
2348f9c4
Commit
2348f9c4
authored
Jul 31, 2020
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coding style
parent
cd3bee1d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
Categories.php
qa-src/Controllers/Admin/Categories.php
+9
-11
Points.php
qa-src/Controllers/Admin/Points.php
+1
-1
ExceptionHandler.php
qa-src/Exceptions/ExceptionHandler.php
+1
-1
Email.php
qa-src/Notifications/Email.php
+1
-1
No files found.
qa-src/Controllers/Admin/Categories.php
View file @
2348f9c4
...
...
@@ -430,14 +430,14 @@ class Categories extends BaseController
);
}
$qcountHtml
=
$editcategory
[
'qcount'
]
==
1
?
qa_lang_html_sub
(
'main/1_question'
,
'1'
,
'1'
)
:
qa_lang_html_sub
(
'main/x_questions'
,
qa_format_number
(
$editcategory
[
'qcount'
]));
$qa_content
[
'form'
][
'fields'
][
'questions'
]
=
array
(
'label'
=>
qa_lang_html
(
'admin/total_qs'
),
'type'
=>
'static'
,
'value'
=>
'<a href="'
.
qa_path_html
(
'questions/'
.
qa_category_path_request
(
$categories
,
$editcategory
[
'categoryid'
]))
.
'">'
.
(
$editcategory
[
'qcount'
]
==
1
?
qa_lang_html_sub
(
'main/1_question'
,
'1'
,
'1'
)
:
qa_lang_html_sub
(
'main/x_questions'
,
qa_format_number
(
$editcategory
[
'qcount'
]))
)
.
'</a>'
,
'value'
=>
'<a href="'
.
qa_path_html
(
'questions/'
.
qa_category_path_request
(
$categories
,
$editcategory
[
'categoryid'
]))
.
'">'
.
$qcountHtml
.
'</a>'
,
);
if
(
$hassubcategory
&&
!
qa_opt
(
'allow_no_sub_category'
))
{
...
...
@@ -601,14 +601,12 @@ class Categories extends BaseController
foreach
(
$categories
as
$category
)
{
if
(
!
isset
(
$category
[
'parentid'
]))
{
$qcountHtml
=
$category
[
'qcount'
]
==
1
?
qa_lang_html_sub
(
'main/1_question'
,
'1'
,
'1'
)
:
qa_lang_html_sub
(
'main/x_questions'
,
qa_format_number
(
$category
[
'qcount'
]));
$navcategoryhtml
.=
'<a href="'
.
qa_path_html
(
'admin/categories'
,
array
(
'edit'
=>
$category
[
'categoryid'
]))
.
'">'
.
qa_html
(
$category
[
'title'
])
.
'</a> - '
.
(
$category
[
'qcount'
]
==
1
?
qa_lang_html_sub
(
'main/1_question'
,
'1'
,
'1'
)
:
qa_lang_html_sub
(
'main/x_questions'
,
qa_format_number
(
$category
[
'qcount'
]))
)
.
'<br/>'
;
qa_html
(
$category
[
'title'
])
.
'</a> - '
.
$qcountHtml
.
'<br/>'
;
}
}
...
...
qa-src/Controllers/Admin/Points.php
View file @
2348f9c4
...
...
@@ -18,8 +18,8 @@
namespace
Q2A\Controllers\Admin
;
use
Q2A\Database\DbConnection
;
use
Q2A\Controllers\BaseController
;
use
Q2A\Database\DbConnection
;
use
Q2A\Middleware\Auth\MinimumUserLevel
;
/**
...
...
qa-src/Exceptions/ExceptionHandler.php
View file @
2348f9c4
...
...
@@ -19,8 +19,8 @@
namespace
Q2A\Exceptions
;
use
Exception
;
use
Q2A\Http\Exceptions\PageNotFoundException
;
use
Q2A\Http\Exceptions\MethodNotAllowedException
;
use
Q2A\Http\Exceptions\PageNotFoundException
;
class
ExceptionHandler
{
...
...
qa-src/Notifications/Email.php
View file @
2348f9c4
...
...
@@ -20,9 +20,9 @@
namespace
Q2A\Notifications
;
use
PHPMailer
;
use
Q2A\Exceptions\FatalErrorException
;
use
Q2A\Notifications\Mailer
;
use
PHPMailer
;
class
Email
{
...
...
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