Просмотр исходного кода

Merge pull request #1729 from Alkarex/Minz_Dispatcher_paths

Minz Dispatcher Controllers path
Alexandre Alapetite 8 лет назад
Родитель
Сommit
4a17c81bad
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 0
      CHANGELOG.md
  2. 1 2
      lib/Minz/Dispatcher.php

+ 1 - 0
CHANGELOG.md

@@ -26,6 +26,7 @@
 	* Hebrew [#1716](https://github.com/FreshRSS/FreshRSS/pull/1716)
 	* Improved German [#1698](https://github.com/FreshRSS/FreshRSS/pull/1698)
 * Extensions
+	* Breaking change: uppercase `./Controllers/` directory [#1729](https://github.com/FreshRSS/FreshRSS/pull/1729)
 	* Show existing extensions in admin panel [#1708](https://github.com/FreshRSS/FreshRSS/pull/1708)
 	* New function `$entry->_hash($hex)` for extensions that change the content of entries [#1707](https://github.com/FreshRSS/FreshRSS/pull/1707)
 * Misc.

+ 1 - 2
lib/Minz/Dispatcher.php

@@ -10,7 +10,6 @@
  * C'est un singleton
  */
 class Minz_Dispatcher {
-	const CONTROLLERS_PATH_NAME = '/Controllers';
 
 	/* singleton */
 	private static $instance = null;
@@ -149,7 +148,7 @@ class Minz_Dispatcher {
 	 */
 	private static function loadController($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;
 	}