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
dbe6904d
Commit
dbe6904d
authored
9 years ago
by
Scott
Browse files
Options
Browse Files
Download
Plain Diff
Merge dev (1.7.2-alpha) into 1.8
parents
2e172b12
0bf0f2d6
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
136 additions
and
84 deletions
+136
-84
VERSION.txt
VERSION.txt
+2
-2
format.php
qa-include/app/format.php
+4
-9
post-update.php
qa-include/app/post-update.php
+2
-2
selects.php
qa-include/db/selects.php
+2
-2
account.php
qa-include/pages/account.php
+1
-1
admin-default.php
qa-include/pages/admin/admin-default.php
+0
-1
default.php
qa-include/pages/default.php
+0
-5
question-submit.php
qa-include/pages/question-submit.php
+19
-4
register.php
qa-include/pages/register.php
+11
-11
qa-filter-basic.php
qa-include/plugins/qa-filter-basic.php
+83
-35
qa-page.php
qa-include/qa-page.php
+5
-0
qa-theme-base.php
qa-include/qa-theme-base.php
+2
-2
qa-facebook-login-page.php
qa-plugin/facebook-login/qa-facebook-login-page.php
+0
-3
config.js
qa-plugin/wysiwyg-editor/ckeditor/config.js
+3
-0
qa-xml-sitemap.php
qa-plugin/xml-sitemap/qa-xml-sitemap.php
+0
-5
qa-styles.css
qa-theme/SnowFlat/qa-styles.css
+2
-2
No files found.
VERSION.txt
View file @
dbe6904d
1.7.0
\ No newline at end of file
1.7.1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
qa-include/app/format.php
View file @
dbe6904d
...
...
@@ -1466,15 +1466,10 @@
foreach
(
$keysourceids
as
$key
=>
$dummy
)
{
$funcscript
[]
=
"
\t
var e=document.getElementById("
.
qa_js
(
$key
)
.
");"
;
$funcscript
[]
=
"
\t
var "
.
$key
.
"=e && (e.checked || (e.options && e.options[e.selectedIndex].value));"
;
$loadscript
[]
=
"var e=document.getElementById("
.
qa_js
(
$key
)
.
");"
;
$loadscript
[]
=
"if (e) {"
;
$loadscript
[]
=
"
\t
"
.
$key
.
"_oldonclick=e.onclick;"
;
$loadscript
[]
=
"
\t
e.onclick=function() {"
;
$loadscript
[]
=
"
\t\t
"
.
$function
.
"(false);"
;
$loadscript
[]
=
"
\t\t
if (typeof "
.
$key
.
"_oldonclick=='function')"
;
$loadscript
[]
=
"
\t\t\t
"
.
$key
.
"_oldonclick();"
;
$loadscript
[]
=
"
\t
};"
;
$loadscript
[]
=
"}"
;
$loadscript
[]
=
"jQuery("
.
qa_js
(
'#'
.
$key
)
.
").click(function() {"
;
$loadscript
[]
=
"
\t
"
.
$function
.
"(false);"
;
$loadscript
[]
=
"});"
;
}
foreach
(
$effects
as
$target
=>
$sources
)
{
...
...
This diff is collapsed.
Click to expand it.
qa-include/app/post-update.php
View file @
dbe6904d
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
qa-include/db/selects.php
View file @
dbe6904d
...
...
@@ -1026,8 +1026,8 @@
{
return
array
(
'columns'
=>
array
(
'wordid'
,
'word'
,
'tagcount'
),
'source'
=>
'^words WHERE word=$'
,
'arguments'
=>
array
(
$tag
),
'source'
=>
'^words WHERE word=$
AND word=$ COLLATE utf8_bin
'
,
'arguments'
=>
array
(
$tag
,
qa_strtolower
(
$tag
)
),
'single'
=>
true
,
);
}
...
...
This diff is collapsed.
Click to expand it.
qa-include/pages/account.php
View file @
dbe6904d
...
...
@@ -77,7 +77,7 @@
$inprofile
=
array
();
foreach
(
$userfields
as
$userfield
)
$inprofile
[
$userfield
[
'fieldid'
]]
=
qa_post_text
(
'field_'
.
$userfield
[
'fieldid'
]);
$inprofile
[
$userfield
[
'fieldid'
]]
=
qa_post_text
(
'field_'
.
$userfield
[
'fieldid'
]);
if
(
!
qa_check_form_security_code
(
'account'
,
qa_post_text
(
'code'
)))
$errors
[
'page'
]
=
qa_lang_html
(
'misc/form_security_again'
);
...
...
This diff is collapsed.
Click to expand it.
qa-include/pages/admin/admin-default.php
View file @
dbe6904d
...
...
@@ -1235,7 +1235,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'
);
...
...
This diff is collapsed.
Click to expand it.
qa-include/pages/default.php
View file @
dbe6904d
...
...
@@ -112,8 +112,6 @@
qa_set_template
(
'custom'
);
$qa_content
=
qa_content_prepare
();
$qa_content
[
'title'
]
=
qa_html
(
qa_opt
(
'custom_home_heading'
));
if
(
qa_opt
(
'show_home_description'
))
$qa_content
[
'description'
]
=
qa_html
(
qa_opt
(
'home_description'
));
$qa_content
[
'custom'
]
=
qa_opt
(
'custom_home_content'
);
return
$qa_content
;
}
...
...
@@ -162,9 +160,6 @@
null
// category nav params
);
if
(
(
!
$explicitqa
)
&&
(
!
$countslugs
)
&&
qa_opt
(
'show_home_description'
)
)
$qa_content
[
'description'
]
=
qa_html
(
qa_opt
(
'home_description'
));
return
$qa_content
;
...
...
This diff is collapsed.
Click to expand it.
qa-include/pages/question-submit.php
View file @
dbe6904d
...
...
@@ -333,6 +333,7 @@
$errors
[
'content'
]
=
qa_lang_html
(
'misc/form_security_again'
);
else
{
// call any filter plugins
$filtermodules
=
qa_load_modules_with
(
'filter'
,
'filter_answer'
);
foreach
(
$filtermodules
as
$filtermodule
)
{
$oldin
=
$in
;
...
...
@@ -340,9 +341,11 @@
qa_update_post_text
(
$in
,
$oldin
);
}
// check CAPTCHA
if
(
$usecaptcha
)
qa_captcha_validate_post
(
$errors
);
// check for duplicate posts
if
(
empty
(
$errors
))
{
$testwords
=
implode
(
' '
,
qa_string_to_words
(
$in
[
'content'
]));
...
...
@@ -352,12 +355,24 @@
$errors
[
'content'
]
=
qa_lang_html
(
'question/duplicate_content'
);
}
$userid
=
qa_get_logged_in_userid
();
// if this is an additional answer, check we can add it
if
(
empty
(
$errors
)
&&
!
qa_opt
(
'allow_multi_answers'
))
{
foreach
(
$answers
as
$answer
)
{
if
(
qa_post_is_by_user
(
$answer
,
$userid
,
qa_cookie_get
()))
{
$errors
[]
=
''
;
break
;
}
}
}
// create the answer
if
(
empty
(
$errors
))
{
$userid
=
qa_get_logged_in_userid
();
$handle
=
qa_get_logged_in_handle
();
$cookieid
=
isset
(
$userid
)
?
qa_cookie_get
()
:
qa_cookie_get_create
();
// create a new cookie if necessary
$handle
=
qa_get_logged_in_handle
();
$cookieid
=
isset
(
$userid
)
?
qa_cookie_get
()
:
qa_cookie_get_create
();
// create a new cookie if necessary
$answerid
=
qa_answer_create
(
$userid
,
$handle
,
$cookieid
,
$in
[
'content'
],
$in
[
'format'
],
$in
[
'text'
],
$in
[
'notify'
],
$in
[
'email'
],
$answerid
=
qa_answer_create
(
$userid
,
$handle
,
$cookieid
,
$in
[
'content'
],
$in
[
'format'
],
$in
[
'text'
],
$in
[
'notify'
],
$in
[
'email'
],
$question
,
$in
[
'queued'
],
$in
[
'name'
]);
return
$answerid
;
...
...
This diff is collapsed.
Click to expand it.
qa-include/pages/register.php
View file @
dbe6904d
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
qa-include/plugins/qa-filter-basic.php
View file @
dbe6904d
...
...
@@ -27,47 +27,64 @@ class qa_filter_basic
{
public
function
filter_email
(
&
$email
,
$olduser
)
{
if
(
!
strlen
(
$email
))
if
(
!
strlen
(
$email
))
{
return
qa_lang
(
'users/email_required'
);
if
(
!
qa_email_validate
(
$email
))
}
if
(
!
qa_email_validate
(
$email
))
{
return
qa_lang
(
'users/email_invalid'
);
if
(
qa_strlen
(
$email
)
>
QA_DB_MAX_EMAIL_LENGTH
)
}
if
(
qa_strlen
(
$email
)
>
QA_DB_MAX_EMAIL_LENGTH
)
{
return
qa_lang_sub
(
'main/max_length_x'
,
QA_DB_MAX_EMAIL_LENGTH
);
}
}
public
function
filter_handle
(
&
$handle
,
$olduser
)
{
if
(
!
strlen
(
$handle
))
if
(
!
strlen
(
$handle
))
{
return
qa_lang
(
'users/handle_empty'
);
if
(
preg_match
(
'/[\\@\\+\\/]/'
,
$handle
))
}
if
(
preg_match
(
'/[\\@\\+\\/]/'
,
$handle
))
{
return
qa_lang_sub
(
'users/handle_has_bad'
,
'@ + /'
);
if
(
qa_strlen
(
$handle
)
>
QA_DB_MAX_HANDLE_LENGTH
)
}
if
(
qa_strlen
(
$handle
)
>
QA_DB_MAX_HANDLE_LENGTH
)
{
return
qa_lang_sub
(
'main/max_length_x'
,
QA_DB_MAX_HANDLE_LENGTH
);
}
}
public
function
filter_question
(
&
$question
,
&
$errors
,
$oldquestion
)
{
$this
->
validate_length
(
$errors
,
'title'
,
@
$question
[
'title'
],
qa_opt
(
'min_len_q_title'
),
max
(
qa_opt
(
'min_len_q_title'
),
min
(
qa_opt
(
'max_len_q_title'
),
QA_DB_MAX_TITLE_LENGTH
)));
if
(
$oldquestion
===
null
)
{
// a new post requires these fields be set
$question
[
'title'
]
=
isset
(
$question
[
'title'
])
?
$question
[
'title'
]
:
''
;
$question
[
'content'
]
=
isset
(
$question
[
'content'
])
?
$question
[
'content'
]
:
''
;
$question
[
'text'
]
=
isset
(
$question
[
'text'
])
?
$question
[
'text'
]
:
''
;
$question
[
'tags'
]
=
isset
(
$question
[
'tags'
])
?
$question
[
'tags'
]
:
array
();
}
$this
->
validate_length
(
$errors
,
'content'
,
@
$question
[
'content'
],
0
,
QA_DB_MAX_CONTENT_LENGTH
);
// for storage
$qminlength
=
qa_opt
(
'min_len_q_title'
);
$qmaxlength
=
max
(
$qminlength
,
min
(
qa_opt
(
'max_len_q_title'
),
QA_DB_MAX_TITLE_LENGTH
));
$this
->
validate_field_length
(
$errors
,
$question
,
'title'
,
$qminlength
,
$qmaxlength
);
$this
->
validate_length
(
$errors
,
'content'
,
@
$question
[
'text'
],
qa_opt
(
'min_len_q_content'
),
null
);
// for display
$this
->
validate_field_length
(
$errors
,
$question
,
'content'
,
0
,
QA_DB_MAX_CONTENT_LENGTH
);
// for storage
$this
->
validate_field_length
(
$errors
,
$question
,
'text'
,
qa_opt
(
'min_len_q_content'
),
null
);
// for display
if
(
isset
(
$question
[
'tags'
]))
{
$counttags
=
count
(
$question
[
'tags'
]);
$mintags
=
min
(
qa_opt
(
'min_num_q_tags'
),
qa_opt
(
'max_num_q_tags'
));
if
(
$counttags
<
$mintags
)
$errors
[
'tags'
]
=
qa_lang_sub
(
'question/min_tags_x'
,
$mintags
);
elseif
(
$counttags
>
qa_opt
(
'max_num_q_tags'
))
$errors
[
'tags'
]
=
qa_lang_sub
(
'question/max_tags_x'
,
qa_opt
(
'max_num_q_tags'
));
else
$this
->
validate_length
(
$errors
,
'tags'
,
qa_tags_to_tagstring
(
$question
[
'tags'
]),
0
,
QA_DB_MAX_TAGS_LENGTH
);
// for storage
$counttags
=
count
(
$question
[
'tags'
]);
$maxtags
=
qa_opt
(
'max_num_q_tags'
);
$mintags
=
min
(
qa_opt
(
'min_num_q_tags'
),
$maxtags
);
if
(
$counttags
<
$mintags
)
{
$errors
[
'tags'
]
=
qa_lang_sub
(
'question/min_tags_x'
,
$mintags
);
}
elseif
(
$counttags
>
$maxtags
)
{
$errors
[
'tags'
]
=
qa_lang_sub
(
'question/max_tags_x'
,
$maxtags
);
}
else
{
$tagstring
=
qa_tags_to_tagstring
(
$question
[
'tags'
]);
if
(
qa_strlen
(
$tagstring
)
>
QA_DB_MAX_TAGS_LENGTH
)
{
// for storage
$errors
[
'tags'
]
=
qa_lang_sub
(
'main/max_length_x'
,
$maxlength
);
}
}
}
$this
->
validate_post_email
(
$errors
,
$question
);
...
...
@@ -75,32 +92,34 @@ class qa_filter_basic
public
function
filter_answer
(
&
$answer
,
&
$errors
,
$question
,
$oldanswer
)
{
$this
->
validate_
length
(
$errors
,
'content'
,
@
$answer
[
'content'
]
,
0
,
QA_DB_MAX_CONTENT_LENGTH
);
// for storage
$this
->
validate_
length
(
$errors
,
'content'
,
@
$answer
[
'text'
],
qa_opt
(
'min_len_a_content'
),
null
);
// for display
$this
->
validate_
field_length
(
$errors
,
$answer
,
'content'
,
0
,
QA_DB_MAX_CONTENT_LENGTH
);
// for storage
$this
->
validate_
field_length
(
$errors
,
$answer
,
'text'
,
qa_opt
(
'min_len_a_content'
),
null
,
'content'
);
// for display
$this
->
validate_post_email
(
$errors
,
$answer
);
}
public
function
filter_comment
(
&
$comment
,
&
$errors
,
$question
,
$parent
,
$oldcomment
)
{
$this
->
validate_
length
(
$errors
,
'content'
,
@
$comment
[
'content'
]
,
0
,
QA_DB_MAX_CONTENT_LENGTH
);
// for storage
$this
->
validate_
length
(
$errors
,
'content'
,
@
$comment
[
'text'
],
qa_opt
(
'min_len_c_content'
),
null
);
// for display
$this
->
validate_
field_length
(
$errors
,
$comment
,
'content'
,
0
,
QA_DB_MAX_CONTENT_LENGTH
);
// for storage
$this
->
validate_
field_length
(
$errors
,
$comment
,
'text'
,
qa_opt
(
'min_len_a_content'
),
null
,
'content'
);
// for display
$this
->
validate_post_email
(
$errors
,
$comment
);
}
public
function
filter_profile
(
&
$profile
,
&
$errors
,
$user
,
$oldprofile
)
{
foreach
(
$profile
as
$field
=>
$value
)
$this
->
validate_length
(
$errors
,
$field
,
$value
,
0
,
QA_DB_MAX_PROFILE_CONTENT_LENGTH
);
foreach
(
array_keys
(
$profile
)
as
$field
)
{
// ensure fields are not NULL
$profile
[
$field
]
=
(
string
)
$profile
[
$field
];
$this
->
validate_field_length
(
$errors
,
$profile
,
$field
,
0
,
QA_DB_MAX_CONTENT_LENGTH
);
}
}
//
The definitions below are not part of a standard filter module, but just used within this one
//
The definitions below are not part of a standard filter module, but just used within this one
/**
* Add textual element $field to $errors if length of $input is not between $minlength and $maxlength.
*
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
* should not be used by outside code.
* @deprecated This function is no longer used and will removed in the future.
*/
public
function
validate_length
(
&
$errors
,
$field
,
$input
,
$minlength
,
$maxlength
)
{
...
...
@@ -113,6 +132,34 @@ class qa_filter_basic
}
/**
* Check that a field meets the length requirements. If we're editing the post we can ignore missing fields.
*
* @param array $errors Array of errors, with keys matching $post
* @param array $post The post containing the field we want to validate
* @param string $key The element of $post to validate
* @param int $minlength
* @param int $maxlength
*/
private
function
validate_field_length
(
&
$errors
,
&
$post
,
$key
,
$minlength
,
$maxlength
,
$errorKey
=
null
)
{
if
(
!
$errorKey
)
{
$errorKey
=
$key
;
}
// skip the field is key not set (for example, 'title' when recategorizing questions)
if
(
array_key_exists
(
$key
,
$post
))
{
$length
=
qa_strlen
(
$post
[
$key
]);
if
(
$length
<
$minlength
)
{
$errors
[
$errorKey
]
=
$minlength
==
1
?
qa_lang
(
'main/field_required'
)
:
qa_lang_sub
(
'main/min_length_x'
,
$minlength
);
}
else
if
(
isset
(
$maxlength
)
&&
(
$length
>
$maxlength
))
{
$errors
[
$errorKey
]
=
qa_lang_sub
(
'main/max_length_x'
,
$maxlength
);
}
}
}
/**
* Wrapper function for validating a post's email address.
*
* @deprecated This function will become private in Q2A 1.8. It is specific to this plugin and
...
...
@@ -121,9 +168,10 @@ class qa_filter_basic
public
function
validate_post_email
(
&
$errors
,
$post
)
{
if
(
@
$post
[
'notify'
]
&&
strlen
(
@
$post
[
'email'
]))
{
$error
=
$this
->
filter_email
(
$post
[
'email'
],
null
);
if
(
isset
(
$error
))
$errors
[
'email'
]
=
$error
;
$error
=
$this
->
filter_email
(
$post
[
'email'
],
null
);
if
(
isset
(
$error
))
{
$errors
[
'email'
]
=
$error
;
}
}
}
}
This diff is collapsed.
Click to expand it.
qa-include/qa-page.php
View file @
dbe6904d
...
...
@@ -522,6 +522,11 @@
'widgets'
=>
array
(),
);
// add meta description if we're on the home page
if
(
$request
===
''
||
$request
===
array_search
(
''
,
qa_get_request_map
()))
{
$qa_content
[
'description'
]
=
qa_html
(
qa_opt
(
'home_description'
));
}
if
(
qa_opt
(
'show_custom_in_head'
))
$qa_content
[
'head_lines'
][]
=
qa_opt
(
'custom_in_head'
);
...
...
This diff is collapsed.
Click to expand it.
qa-include/qa-theme-base.php
View file @
dbe6904d
...
...
@@ -751,7 +751,7 @@ class qa_html_theme_base
}
// add closed note in title
if
(
!
empty
(
$q_view
[
'closed'
]))
if
(
!
empty
(
$q_view
[
'closed'
]
[
'state'
]
))
$this
->
output
(
' ['
.
$q_view
[
'closed'
][
'state'
]
.
']'
);
}
...
...
@@ -1637,7 +1637,7 @@ class qa_html_theme_base
'<div class="qa-q-item-title">'
,
'<a href="'
.
$q_item
[
'url'
]
.
'">'
.
$q_item
[
'title'
]
.
'</a>'
,
// add closed note in title
empty
(
$q_item
[
'closed'
])
?
''
:
' ['
.
$q_item
[
'closed'
][
'state'
]
.
']'
,
empty
(
$q_item
[
'closed'
]
[
'state'
]
)
?
''
:
' ['
.
$q_item
[
'closed'
][
'state'
]
.
']'
,
'</div>'
);
}
...
...
This diff is collapsed.
Click to expand it.
qa-plugin/facebook-login/qa-facebook-login-page.php
View file @
dbe6904d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
qa-plugin/wysiwyg-editor/ckeditor/config.js
View file @
dbe6904d
...
...
@@ -33,4 +33,7 @@ CKEDITOR.editorConfig = function( config ) {
// Use native spell checking (note: Ctrl+right-click is required for native context menu)
config
.
disableNativeSpellChecker
=
false
;
// Prevent blank paragraphs
config
.
fillEmptyBlocks
=
false
;
};
This diff is collapsed.
Click to expand it.
qa-plugin/xml-sitemap/qa-xml-sitemap.php
View file @
dbe6904d
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
qa-theme/SnowFlat/qa-styles.css
View file @
dbe6904d
...
...
@@ -2030,7 +2030,7 @@ input[type="submit"], button {
margin-top
:
0
;
}
#level
.qa-form-wide-static
a
{
#level
.qa-form-wide-static
a
:first-child
{
background-color
:
#27ae60
;
background-image
:
url('images/icons/mail-white.png')
;
background-repeat
:
no-repeat
;
...
...
@@ -2040,7 +2040,7 @@ input[type="submit"], button {
display
:
inline-block
;
color
:
#fff
;
}
#level
.qa-form-wide-static
a
:hover
,
#level
.qa-form-wide-static
a
:focus
{
#level
.qa-form-wide-static
a
:hover
:first-child
,
#level
.qa-form-wide-static
a
:focus:first-child
{
background-color
:
#2ecc71
;
background-image
:
url('images/icons/mail-white.png')
;
border
:
1px
solid
#25a25a
;
...
...
This diff is collapsed.
Click to expand it.
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