Преглед изворни кода

Minz Dispatcher Controllers path

https://github.com/FreshRSS/FreshRSS/pull/1704
Alexandre Alapetite пре 8 година
родитељ
комит
425958af5a
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      lib/Minz/Dispatcher.php

+ 1 - 2
lib/Minz/Dispatcher.php

@@ -10,7 +10,6 @@
  * C'est un singleton
  * C'est un singleton
  */
  */
 class Minz_Dispatcher {
 class Minz_Dispatcher {
-	const CONTROLLERS_PATH_NAME = '/Controllers';
 
 
 	/* singleton */
 	/* singleton */
 	private static $instance = null;
 	private static $instance = null;
@@ -149,7 +148,7 @@ class Minz_Dispatcher {
 	 */
 	 */
 	private static function loadController($base_name) {
 	private static function loadController($base_name) {
 		$base_path = self::$registrations[$base_name];
 		$base_path = self::$registrations[$base_name];
-		$controller_filename = $base_path . '/controllers/' . $base_name . 'Controller.php';
+		$controller_filename = $base_path . '/Controllers/' . $base_name . 'Controller.php';
 		include_once $controller_filename;
 		include_once $controller_filename;
 	}
 	}