Explorar el Código

Moves test files to separate folder.

Taddes Kroes hace 14 años
padre
commit
3c8c11a1a3
Se han modificado 3 ficheros con 5 adiciones y 4 borrados
  1. 1 1
      pquery.template.php
  2. 3 3
      test/index.php
  3. 1 0
      test/templates/test.tpl

+ 1 - 1
pquery.template.php

@@ -56,7 +56,7 @@ class pQueryTemplate extends pQuery implements pQueryExtension {
 	 */
 	static function set_root($path, $relative=true) {
 		self::$include_path = array();
-		self::add_root($path);
+		self::add_root($path, $relative);
 	}
 	
 	/**

+ 3 - 3
index.php → test/index.php

@@ -1,7 +1,7 @@
 <?php
 
-include_once '../debug.php';
-include_once 'pquery.php';
+include_once '../../debug.php';
+include_once '../pquery.php';
 __p::require_plugins('array', 'sql', 'template');
 
 // Array test
@@ -19,7 +19,7 @@ $results = _arr($results);
 
 debug($results);*/
 
-__tpl::set_root('templates');
+__tpl::set_root('templates', false);
 $tpl = _tpl('test.tpl');
 
 debug($tpl->content);

+ 1 - 0
test/templates/test.tpl

@@ -0,0 +1 @@
+testcontent