Skip to content
Snippets Groups Projects
Commit 4dd29e0a authored by Taddes Kroes's avatar Taddes Kroes
Browse files

Fixed some naming issues.

parent 232df72c
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ class pQueryArray extends pQuery implements pQueryExtension {
}
/**
* Shortcut constructor for {@link pQuerySql}.
* Shortcut constructor for {@link pQueryArray}.
*
* @returns pQuerySql A new pQuerySql instance.
* @see pQuerySql::__construct
......
......@@ -14,7 +14,8 @@
define('DEBUG', true);
/**
* The root location of the pQuery framework folder, used for file inclusions.
* The root location of the pQuery framework folder, used for file
* inclusions. The path is absolute and should end with a slash ('/').
*
* @var string
*/
......@@ -31,7 +32,7 @@ define('ERROR_IS_FATAL', true);
/**
* Abstract class containing plugin configs.
*/
abstract class Config {
abstract class pQueryConfig {
/**
* Config for MySQL plugin.
*
......
......@@ -181,11 +181,11 @@ class pQuerySql extends pQuery implements pQueryExtension {
if( self::$link )
return;
if( !isset(Config::$sql) )
if( !isset(pQueryConfig::$sql) )
return self::error('Could not connect to database: no MySQL config found.');
// Connect to the database
$c = Config::$sql;
$c = pQueryConfig::$sql;
$link = @mysql_connect($c['host'], $c['username'], $c['password']);
if( $link === false )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment