Get rid of feed global constants
[gitphp.git] / include / controller / Controller.class.php
blob:a/include/controller/Controller.class.php -> blob:b/include/controller/Controller.class.php
--- a/include/controller/Controller.class.php
+++ b/include/controller/Controller.class.php
@@ -73,9 +73,9 @@
 			case 'rss':
 				$controller = new GitPHP_Controller_Feed();
 				if ($action == 'rss')
-					$controller->SetParam('format', GITPHP_FEED_FORMAT_RSS);
+					$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);
 				else if ($action == 'atom')
-					$controller->SetParam('format', GITPHP_FEED_FORMAT_ATOM);
+					$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);
 				break;
 			case 'commit':
 				$controller = new GitPHP_Controller_Commit();

comments