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
41faf774
Commit
41faf774
authored
Aug 06, 2015
by
Scott
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pr/264' into dev
parents
e43e3539
6cff546f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
22 deletions
+13
-22
post-update.php
qa-include/app/post-update.php
+2
-2
admin-default.php
qa-include/pages/admin/admin-default.php
+0
-1
register.php
qa-include/pages/register.php
+11
-11
qa-facebook-login-page.php
qa-plugin/facebook-login/qa-facebook-login-page.php
+0
-3
qa-xml-sitemap.php
qa-plugin/xml-sitemap/qa-xml-sitemap.php
+0
-5
No files found.
qa-include/app/post-update.php
View file @
41faf774
...
...
@@ -437,6 +437,8 @@
if
(
$oldquestion
[
'type'
]
!=
'Q_HIDDEN'
)
qa_fatal_error
(
'Tried to delete a non-hidden question'
);
qa_report_event
(
'q_delete_before'
,
$userid
,
$handle
,
$cookieid
,
$params
);
if
(
isset
(
$oldclosepost
)
&&
(
$oldclosepost
[
'parentid'
]
==
$oldquestion
[
'postid'
]))
{
qa_db_post_set_closed
(
$oldquestion
[
'postid'
],
null
);
// for foreign key constraint
qa_post_unindex
(
$oldclosepost
[
'postid'
]);
...
...
@@ -451,8 +453,6 @@
'oldquestion'
=>
$oldquestion
,
);
qa_report_event
(
'q_delete_before'
,
$userid
,
$handle
,
$cookieid
,
$params
);
qa_post_unindex
(
$oldquestion
[
'postid'
]);
qa_db_post_delete
(
$oldquestion
[
'postid'
]);
// also deletes any related voteds due to foreign key cascading
qa_update_counts_for_q
(
null
);
...
...
qa-include/pages/admin/admin-default.php
View file @
41faf774
...
...
@@ -1223,7 +1223,6 @@
$editors
=
qa_list_modules
(
'editor'
);
$selectoptions
=
array
();
$optionslinks
=
false
;
foreach
(
$editors
as
$editor
)
{
$selectoptions
[
qa_html
(
$editor
)]
=
strlen
(
$editor
)
?
qa_html
(
$editor
)
:
qa_lang_html
(
'admin/basic_editor'
);
...
...
qa-include/pages/register.php
View file @
41faf774
...
...
@@ -194,17 +194,6 @@
));
}
// show T&Cs checkbox
if
(
$show_terms
)
{
$qa_content
[
'form'
][
'fields'
][
'terms'
]
=
array
(
'type'
=>
'checkbox'
,
'label'
=>
trim
(
qa_opt
(
'register_terms'
)),
'tags'
=>
'name="terms" id="terms"'
,
'value'
=>
qa_html
(
@
$interms
),
'error'
=>
qa_html
(
@
$errors
[
'terms'
]),
);
}
foreach
(
$userfields
as
$userfield
)
{
$value
=
@
$inprofile
[
$userfield
[
'fieldid'
]];
...
...
@@ -224,6 +213,17 @@
if
(
qa_opt
(
'captcha_on_register'
))
qa_set_up_captcha_field
(
$qa_content
,
$qa_content
[
'form'
][
'fields'
],
@
$errors
);
// show T&Cs checkbox
if
(
$show_terms
)
{
$qa_content
[
'form'
][
'fields'
][
'terms'
]
=
array
(
'type'
=>
'checkbox'
,
'label'
=>
trim
(
qa_opt
(
'register_terms'
)),
'tags'
=>
'name="terms" id="terms"'
,
'value'
=>
qa_html
(
@
$interms
),
'error'
=>
qa_html
(
@
$errors
[
'terms'
]),
);
}
$loginmodules
=
qa_load_modules_with
(
'login'
,
'login_html'
);
foreach
(
$loginmodules
as
$module
)
{
...
...
qa-plugin/facebook-login/qa-facebook-login-page.php
View file @
41faf774
...
...
@@ -22,14 +22,11 @@
class
qa_facebook_login_page
{
private
$directory
;
private
$urltoroot
;
public
function
load_module
(
$directory
,
$urltoroot
)
{
$this
->
directory
=
$directory
;
$this
->
urltoroot
=
$urltoroot
;
}
public
function
match_request
(
$request
)
...
...
qa-plugin/xml-sitemap/qa-xml-sitemap.php
View file @
41faf774
...
...
@@ -137,8 +137,6 @@ class qa_xml_sitemap
{
@
ini_set
(
'display_errors'
,
0
);
// we don't want to show PHP errors inside XML
$siteurl
=
qa_opt
(
'site_url'
);
header
(
'Content-type: text/xml; charset=utf-8'
);
echo
'<?xml version="1.0" encoding="UTF-8"?>'
.
"
\n
"
;
...
...
@@ -262,9 +260,6 @@ class qa_xml_sitemap
}
}
// Finish up...
echo
"</urlset>
\n
"
;
return
null
;
...
...
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