Commit 8184990d authored by Taddeus Kroes's avatar Taddeus Kroes

Updated some comments.

parent bc5247fd
...@@ -275,7 +275,8 @@ class pQuery { ...@@ -275,7 +275,8 @@ class pQuery {
} }
/** /**
* Assert that the given constants have been defined. Add the prefix 'PQUERY_' to each constant name. * Assert that the given constants have been defined.
* Add the prefix 'PQUERY_' to each constant name.
*/ */
static function assert_defined(/* $constant1 [ , $constant2, ... ] */) { static function assert_defined(/* $constant1 [ , $constant2, ... ] */) {
$constants = func_get_args(); $constants = func_get_args();
......
...@@ -61,8 +61,8 @@ class pQueryTemplate extends pQuery implements pQueryExtension { ...@@ -61,8 +61,8 @@ class pQueryTemplate extends pQuery implements pQueryExtension {
$found = false; $found = false;
$filename = $this->variable; $filename = $this->variable;
// Add default extension // Add default extension if none is found
strpos($filename, '.') || $filename .= '.'.self::DEFAULT_EXTENSION; strpos($filename, '.') === false && $filename .= '.'.self::DEFAULT_EXTENSION;
foreach( self::$include_path as $root ) { foreach( self::$include_path as $root ) {
$path = $root.$filename; $path = $root.$filename;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment