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
90c90015
Commit
90c90015
authored
May 13, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin update
parent
e06397a8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
13 deletions
+12
-13
page.php
qa-include/app/page.php
+9
-9
ask.php
qa-include/pages/ask.php
+1
-1
qa-base.php
qa-include/qa-base.php
+1
-2
qa-lang-main.php
qa-lang/fr/qa-lang-main.php
+1
-1
No files found.
qa-include/app/page.php
View file @
90c90015
...
...
@@ -573,13 +573,7 @@ function qa_content_prepare($voting = false, $categoryids = array())
);
}
if
(
qa_opt
(
'nav_users'
))
{
$qa_content
[
'navigation'
][
'main'
][
'user'
]
=
array
(
'url'
=>
qa_path_html
(
'users'
),
'label'
=>
qa_lang_html
(
'main/nav_users'
),
'selected_on'
=>
array
(
'users$'
,
'users/'
,
'user/'
),
);
}
// Only the 'level' permission error prevents the menu option being shown - others reported on /qa-include/pages/ask.php
...
...
@@ -590,10 +584,14 @@ function qa_content_prepare($voting = false, $categoryids = array())
);
}
if
(
qa_get_logged_in_level
()
>=
QA_USER_LEVEL_ADMIN
||
!
qa_user_maximum_permit_error
(
'permit_moderate'
)
||
!
qa_user_maximum_permit_error
(
'permit_hide_show'
)
||
!
qa_user_maximum_permit_error
(
'permit_delete_hidden'
)
!
qa_user_maximum_permit_error
(
'permit_hide_show'
)
||
!
qa_user_maximum_permit_error
(
'permit_delete_hidden'
)
)
{
$qa_content
[
'navigation'
][
'main'
][
'user'
]
=
array
(
'url'
=>
qa_path_html
(
'users'
),
'label'
=>
qa_lang_html
(
'main/nav_users'
),
'selected_on'
=>
array
(
'users$'
,
'users/'
,
'user/'
),
);
$qa_content
[
'navigation'
][
'main'
][
'admin'
]
=
array
(
'url'
=>
qa_path_html
(
'admin'
),
'label'
=>
qa_lang_html
(
'main/nav_admin'
),
...
...
@@ -601,6 +599,8 @@ function qa_content_prepare($voting = false, $categoryids = array())
);
}
$qa_content
[
'search'
]
=
array
(
'form_tags'
=>
'method="get" action="'
.
qa_path_html
(
'search'
)
.
'"'
,
'form_extra'
=>
qa_path_form_html
(
'search'
),
...
...
qa-include/pages/ask.php
View file @
90c90015
...
...
@@ -298,7 +298,7 @@ if (!isset($userid) && qa_opt('allow_anonymous_naming')) {
}
qa_set_up_notify_fields
(
$qa_content
,
$qa_content
[
'form'
][
'fields'
],
'Q'
,
qa_get_logged_in_email
(),
qa_opt
(
'notify_users_default'
),
@
$in
[
'email'
],
@
$errors
[
'email'
]);
isset
(
$in
[
'notify'
])
?
$in
[
'notify'
]
:
qa_opt
(
'notify_users_default'
),
@
$in
[
'email'
],
@
$errors
[
'email'
]);
if
(
$captchareason
)
{
require_once
QA_INCLUDE_DIR
.
'app/captcha.php'
;
...
...
qa-include/qa-base.php
View file @
90c90015
...
...
@@ -369,8 +369,7 @@ function qa_register_core_modules()
qa_register_module
(
'event'
,
'plugins/qa-event-updates.php'
,
'qa_event_updates'
,
'Q2A Event Updates'
);
qa_register_module
(
'search'
,
'plugins/qa-search-basic.php'
,
'qa_search_basic'
,
''
);
qa_register_module
(
'widget'
,
'plugins/qa-widget-activity-count.php'
,
'qa_activity_count'
,
'Activity Count'
);
qa_register_module
(
'widget'
,
'plugins/qa-widget-ask-box.php'
,
'qa_ask_box'
,
'Ask Box'
);
qa_register_module
(
'widget'
,
'plugins/qa-widget-related-qs.php'
,
'qa_related_qs'
,
'Related Questions'
);
qa_register_module
(
'widget'
,
'plugins/qa-widget-category-list.php'
,
'qa_category_list'
,
'Categories'
);
}
...
...
qa-lang/fr/qa-lang-main.php
View file @
90c90015
...
...
@@ -103,7 +103,7 @@
'max_upload_size_x'
=>
'Taille maximale de téléchargement est ^'
,
'moved'
=>
'déplacé'
,
'nav_activity'
=>
'Toutes les activités'
,
'nav_admin'
=>
'
Admin
'
,
'nav_admin'
=>
'
Réglages du forum
'
,
'nav_ask'
=>
'Poser une question'
,
'nav_categories'
=>
'Catégories'
,
'nav_feedback'
=>
'Contacter le comité Cagette du futur'
,
...
...
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