Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Always use JLog::WARNING for deprecated notices.
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed May 3, 2012
1 parent a2306f4 commit 1c7e049
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions libraries/joomla/database/database.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ abstract class JDatabase
*/ */
public function query() public function query()
{ {
JLog::add('JDatabase::query() is deprecated, use JDatabaseDriver::execute() instead.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabase::query() is deprecated, use JDatabaseDriver::execute() instead.', JLog::WARNING, 'deprecated');


return $this->execute(); return $this->execute();
} }
Expand All @@ -46,7 +46,7 @@ public function query()
*/ */
public static function getConnectors() public static function getConnectors()
{ {
JLog::add('JDatabase::getConnectors() is deprecated, use JDatabaseDriver::getConnectors() instead.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabase::getConnectors() is deprecated, use JDatabaseDriver::getConnectors() instead.', JLog::WARNING, 'deprecated');


return JDatabaseDriver::getConnectors(); return JDatabaseDriver::getConnectors();
} }
Expand Down Expand Up @@ -109,7 +109,7 @@ public function getErrorNum()
*/ */
public static function getInstance($options = array()) public static function getInstance($options = array())
{ {
JLog::add('JDatabase::getInstance() is deprecated, use JDatabaseDriver::getInstance() instead.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabase::getInstance() is deprecated, use JDatabaseDriver::getInstance() instead.', JLog::WARNING, 'deprecated');


return JDatabaseDriver::getInstance($options); return JDatabaseDriver::getInstance($options);
} }
Expand All @@ -126,7 +126,7 @@ public static function getInstance($options = array())
*/ */
public static function splitSql($sql) public static function splitSql($sql)
{ {
JLog::add('JDatabase::splitSql() is deprecated, use JDatabaseDriver::splitSql() instead.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabase::splitSql() is deprecated, use JDatabaseDriver::splitSql() instead.', JLog::WARNING, 'deprecated');


return JDatabaseDriver::splitSql($sql); return JDatabaseDriver::splitSql($sql);
} }
Expand Down
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/mysql.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseMysql is deprecated, use JDatabaseDriverMysql instead.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseMysql is deprecated, use JDatabaseDriverMysql instead.', JLog::WARNING, 'deprecated');


/** /**
* MySQL database driver * MySQL database driver
Expand Down
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/mysqlexporter.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseExporterMysql has moved to the database/exporter directory.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseExporterMysql has moved to the database/exporter directory.', JLog::WARNING, 'deprecated');
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/mysqli.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseMysqli is deprecated, use JDatabaseDriverMysqli instead.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseMysqli is deprecated, use JDatabaseDriverMysqli instead.', JLog::WARNING, 'deprecated');


/** /**
* MySQLi database driver * MySQLi database driver
Expand Down
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/mysqliexporter.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseExporterMysqli has moved to the database/exporter directory.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseExporterMysqli has moved to the database/exporter directory.', JLog::WARNING, 'deprecated');
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/mysqliimporter.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseImporterMysqli has moved to the database/importer directory.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseImporterMysqli has moved to the database/importer directory.', JLog::WARNING, 'deprecated');
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/mysqlimporter.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseImporterMysql has moved to the database/importer directory.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseImporterMysql has moved to the database/importer directory.', JLog::WARNING, 'deprecated');
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/mysqliquery.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseQueryMysqli has moved to the database/query directory.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseQueryMysqli has moved to the database/query directory.', JLog::WARNING, 'deprecated');
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/mysqlquery.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseQueryMysql has moved to the database/query directory.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseQueryMysql has moved to the database/query directory.', JLog::WARNING, 'deprecated');
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/sqlazure.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseSqlazure is deprecated, use JDatabaseDriverSqlazure instead.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseSqlazure is deprecated, use JDatabaseDriverSqlazure instead.', JLog::WARNING, 'deprecated');


/** /**
* SQL Server database driver * SQL Server database driver
Expand Down
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/sqlazurequery.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseQuerySqlazure has moved to the database/query directory.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseQuerySqlazure has moved to the database/query directory.', JLog::WARNING, 'deprecated');
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/sqlsrv.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseSqlsrv is deprecated, use JDatabaseDriverSqlsrv instead.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseSqlsrv is deprecated, use JDatabaseDriverSqlsrv instead.', JLog::WARNING, 'deprecated');
JLoader::register('JDatabaseQuerySQLSrv', __DIR__ . '/sqlsrvquery.php'); JLoader::register('JDatabaseQuerySQLSrv', __DIR__ . '/sqlsrvquery.php');


/** /**
Expand Down
2 changes: 1 addition & 1 deletion libraries/joomla/database/database/sqlsrvquery.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@


defined('JPATH_PLATFORM') or die; defined('JPATH_PLATFORM') or die;


JLog::add('JDatabaseQuerySqlsrv has moved to the database/query directory.', JLog::NOTICE, 'deprecated'); JLog::add('JDatabaseQuerySqlsrv has moved to the database/query directory.', JLog::WARNING, 'deprecated');
4 changes: 2 additions & 2 deletions libraries/joomla/utilities/xmlelement.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class JXMLElement extends SimpleXMLElement
*/ */
public function name() public function name()
{ {
JLog::add('JXMLElement::name() is deprecated, use SimpleXMLElement::getName() instead.', self::WARNING, 'deprecated'); JLog::add('JXMLElement::name() is deprecated, use SimpleXMLElement::getName() instead.', JLog::WARNING, 'deprecated');
return (string) $this->getName(); return (string) $this->getName();
} }


Expand All @@ -47,7 +47,7 @@ public function name()
*/ */
public function asFormattedXML($compressed = false, $indent = "\t", $level = 0) public function asFormattedXML($compressed = false, $indent = "\t", $level = 0)
{ {
JLog::add('JXMLElement::asFormattedXML() is deprecated, use SimpleXMLElement::asXML() instead.', self::WARNING, 'deprecated'); JLog::add('JXMLElement::asFormattedXML() is deprecated, use SimpleXMLElement::asXML() instead.', JLog::WARNING, 'deprecated');
$out = ''; $out = '';


// Start a new line, indent by the number indicated in $level // Start a new line, indent by the number indicated in $level
Expand Down

0 comments on commit 1c7e049

Please sign in to comment.