Ver Fonte

Handle project and user templating again.

Nathaniel van Diepen há 10 anos atrás
pai
commit
421c3197d2
1 ficheiros alterados com 2 adições e 6 exclusões
  1. 2 6
      api.php

+ 2 - 6
api.php

@@ -9,9 +9,7 @@
 			switch($_GET['type']){
 				case 'user':
 					back(true);
-					if(!isset($_GET['template'])){
-						$ret['template'] = file_get_contents(PATH_DATA.'pages/user.template');
-					}
+					$ret['template'] = 'user';
 					if($user = userObj($id)){
 						$context = array(
 							'name'=>$user['name'],
@@ -67,9 +65,7 @@
 				break;
 				case 'project':
 					back(true);
-					if(!isset($_GET['template'])){
-						$ret['template'] = file_get_contents(PATH_DATA.'pages/project.template');
-					}
+					$ret['template'] = 'project';
 					if($context = projectObj($id)){
 						$context['user'] = userObj($context['user']);
 						if($LOGGEDIN){