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
ba6464b5
Commit
ba6464b5
authored
Apr 22, 2014
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update deprecated notices in various files
parent
66fcb7eb
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
30 additions
and
81 deletions
+30
-81
qa-app-admin.php
qa-include/qa-app-admin.php
+5
-6
qa-app-format.php
qa-include/qa-app-format.php
+5
-4
qa-app-limits.php
qa-include/qa-app-limits.php
+5
-4
qa-app-options.php
qa-include/qa-app-options.php
+4
-6
qa-app-posts.php
qa-include/qa-app-posts.php
+5
-5
qa-class.phpmailer.php
qa-include/qa-class.phpmailer.php
+1
-27
qa-class.smtp.php
qa-include/qa-class.smtp.php
+1
-27
qa-db-post-update.php
qa-include/qa-db-post-update.php
+1
-1
qa-htmLawed.php
qa-include/qa-htmLawed.php
+3
-1
No files found.
qa-include/qa-app-admin.php
View file @
ba6464b5
...
...
@@ -574,14 +574,13 @@
}
/**
* Retrieve metadata information from the $contents of a qa-theme.php or qa-plugin.php file, mapping via $fields.
*
* @deprecated Deprecated from 1.7; use `qa_addon_metadata($contents, $type)` instead.
*/
function
qa_admin_addon_metadata
(
$contents
,
$fields
)
/*
Retrieve metadata information from the $contents of a qa-theme.php or qa-plugin.php file, mapping via $fields.
This function is now DEPRECATED.
*/
{
trigger_error
(
'Function qa_admin_addon_metadata is deprecated; use qa_addon_metadata instead'
,
E_USER_NOTICE
);
$metadata
=
array
();
foreach
(
$fields
as
$key
=>
$field
)
...
...
qa-include/qa-app-format.php
View file @
ba6464b5
...
...
@@ -1336,11 +1336,12 @@
}
/**
* Return the sub navigation structure for user account pages.
*
* @deprecated Deprecated from 1.6.3; use `qa_user_sub_navigation()` instead.
*/
function
qa_account_sub_navigation
()
/*
Return the sub navigation structure for user account pages.
RETIRED FROM USE IN Q2A 1.6.3 BUT RETAINED FOR BACKWARDS COMPATIBILITY
*/
{
return
array
(
'account'
=>
array
(
...
...
qa-include/qa-app-limits.php
View file @
ba6464b5
...
...
@@ -55,11 +55,12 @@
}
/**
* Return how many more times user $userid and/or the requesting IP can perform $action (a QA_LIMIT_* constant) this hour.
*
* @deprecated Deprecated from 1.6.0; use `qa_user_limits_remaining($action)` instead.
*/
function
qa_limits_remaining
(
$userid
,
$action
)
/*
Return how many more times user $userid and/or the requesting IP can perform $action this hour, where $action is one
of the QA_LIMIT_* constants above. This function is no longer used and only included for backwards compatibility.
*/
{
if
(
qa_to_override
(
__FUNCTION__
))
{
$args
=
func_get_args
();
return
qa_call_override
(
__FUNCTION__
,
$args
);
}
...
...
qa-include/qa-app-options.php
View file @
ba6464b5
...
...
@@ -108,12 +108,10 @@
}
function
qa_options_set_pending
(
$names
)
/*
This is deprecated since Q2A 1.3 now that all options are retrieved together.
Function kept for backwards compatibility with modified Q2A code bases.
*/
{}
/**
* @deprecated Deprecated since Q2A 1.3 now that all options are retrieved together.
*/
function
qa_options_set_pending
(
$names
)
{}
function
qa_preload_options
()
...
...
qa-include/qa-app-posts.php
View file @
ba6464b5
...
...
@@ -328,13 +328,13 @@
}
/**
* Return the handle corresponding to $userid, unless it is null in which case return null.
*
* @deprecated Deprecated from 1.7; use `qa_userid_to_handle($userid)` instead.
*/
function
qa_post_userid_to_handle
(
$userid
)
/*
Return the handle corresponding to $userid, unless it is null in which case return null.
This function is now DEPRECATED.
*/
{
trigger_error
(
'Function qa_post_userid_to_handle is deprecated; use qa_userid_to_handle instead'
,
E_USER_NOTICE
);
return
qa_userid_to_handle
(
$userid
);
}
...
...
qa-include/qa-class.phpmailer.php
View file @
ba6464b5
<?php
trigger_error
(
'File qa-class.phpmailer.php is deprecated; please use Q2A built-in functions for sending emails'
,
E_USER_NOTICE
);
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.0.4 |
| Contact: via sourceforge.net support pages (also www.codeworxtech.com) |
| Info: http://phpmailer.sourceforge.net |
| Support: http://sourceforge.net/projects/phpmailer/ |
| ------------------------------------------------------------------------- |
| Author: Andy Prevost (project admininistrator) |
| Author: Brent R. Matzelle (original founder) |
| Copyright (c) 2004-2007, Andy Prevost. All Rights Reserved. |
| Copyright (c) 2001-2003, Brent R. Matzelle |
| ------------------------------------------------------------------------- |
| License: Distributed under the Lesser General Public License (LGPL) |
| http://www.gnu.org/copyleft/lesser.html |
| This program is distributed in the hope that it will be useful - WITHOUT |
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| FITNESS FOR A PARTICULAR PURPOSE. |
| ------------------------------------------------------------------------- |
| We offer a number of paid services (www.codeworxtech.com): |
| - Web Hosting on highly optimized fast and secure servers |
| - Technology Consulting |
| - Oursourcing (highly qualified programmers and graphic designers) |
'---------------------------------------------------------------------------'
/**
* PHPMailer - PHP email transport class
* @package PHPMailer
* @author Andy Prevost
* @copyright 2004 - 2009 Andy Prevost
* @deprecated This file is deprecated; please use Q2A built-in functions for sending emails.
*/
class
PHPMailer
{
...
...
qa-include/qa-class.smtp.php
View file @
ba6464b5
<?php
trigger_error
(
'File qa-class.smtp.php is deprecated; please use Q2A built-in functions for sending emails'
,
E_USER_NOTICE
);
/*~ class.smtp.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.0.4 |
| Contact: via sourceforge.net support pages (also www.codeworxtech.com) |
| Info: http://phpmailer.sourceforge.net |
| Support: http://sourceforge.net/projects/phpmailer/ |
| ------------------------------------------------------------------------- |
| Author: Andy Prevost (project admininistrator) |
| Author: Brent R. Matzelle (original founder) |
| Copyright (c) 2004-2007, Andy Prevost. All Rights Reserved. |
| Copyright (c) 2001-2003, Brent R. Matzelle |
| ------------------------------------------------------------------------- |
| License: Distributed under the Lesser General Public License (LGPL) |
| http://www.gnu.org/copyleft/lesser.html |
| This program is distributed in the hope that it will be useful - WITHOUT |
| ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| FITNESS FOR A PARTICULAR PURPOSE. |
| ------------------------------------------------------------------------- |
| We offer a number of paid services (www.codeworxtech.com): |
| - Web Hosting on highly optimized fast and secure servers |
| - Technology Consulting |
| - Oursourcing (highly qualified programmers and graphic designers) |
'---------------------------------------------------------------------------'
/**
* SMTP is rfc 821 compliant and implements all the rfc 821 SMTP
* commands except TURN which will always return a not implemented
...
...
@@ -33,6 +6,7 @@ trigger_error('File qa-class.smtp.php is deprecated; please use Q2A built-in fun
* to an SMTP server.
* @package PHPMailer
* @author Chris Ryan
* @deprecated This file is deprecated; please use Q2A built-in functions for sending emails.
*/
class
SMTP
...
...
qa-include/qa-db-post-update.php
View file @
ba6464b5
...
...
@@ -116,7 +116,7 @@
function
qa_db_post_set_content
(
$postid
,
$title
,
$content
,
$format
,
$tagstring
,
$notify
,
$lastuserid
=
null
,
$lastip
=
null
,
$updatetype
=
QA_UPDATE_CONTENT
,
$name
=
null
)
/*
Set the text fields in the database of $postid to $title, $content, $tagstring, $notify and $name, and record that
$lastuserid did it from $lastip (if at least one is specified) with $updatetype. or backwards compatibility if $name
$lastuserid did it from $lastip (if at least one is specified) with $updatetype.
F
or backwards compatibility if $name
is null then the name will not be changed.
*/
{
...
...
qa-include/qa-htmLawed.php
View file @
ba6464b5
<?php
trigger_error
(
'File qa-htmLawed.php is deprecated; please use vendor/htmLawed.php instead.'
,
E_USER_NOTICE
);
/**
* @deprecated This file is deprecated from Q2A 1.7; use vendor/htmLawed.php instead.
*/
/*
htmLawed 1.1.14, 8 August 2012
...
...
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