ソースを参照

Fixed some naming issues.

Taddes Kroes 14 年 前
コミット
4dd29e0a54
3 ファイル変更6 行追加5 行削除
  1. 1 1
      pquery.array.php
  2. 3 2
      pquery.config.php
  3. 2 2
      pquery.sql.php

+ 1 - 1
pquery.array.php

@@ -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

+ 3 - 2
pquery.config.php

@@ -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.
 	 * 

+ 2 - 2
pquery.sql.php

@@ -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 )