diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-03-27 20:49:05 +0000 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2023-03-27 20:49:05 +0000 |
| commit | 974691ee8ec6568b17d1066b377cc173df875709 (patch) | |
| tree | e778a8d5a3152af5c3857da901b0c3091714cc60 /public | |
| parent | e605e048d00c009b5511fef2635968786304fdb3 (diff) | |
use camcelCase instead of snake case, re #2030
Merge request studip/studip!1668
Diffstat (limited to 'public')
| -rw-r--r-- | public/api.php | 2 | ||||
| -rw-r--r-- | public/assets.php | 2 | ||||
| -rw-r--r-- | public/dispatch.php | 2 | ||||
| -rw-r--r-- | public/install.php | 2 | ||||
| -rw-r--r-- | public/plugins.php | 2 | ||||
| -rw-r--r-- | public/web_migrate.php | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/public/api.php b/public/api.php index 1376ae4..762c140 100644 --- a/public/api.php +++ b/public/api.php @@ -45,7 +45,7 @@ namespace RESTAPI { // Initialize RESTAPI plugins \PluginEngine::getPlugins('RESTAPIPlugin'); - $uri = \Request::path_info(); + $uri = \Request::pathInfo(); // Check version if (defined('RESTAPI\\VERSION') && preg_match('~^/v(\d+)~i', $uri, $match)) { diff --git a/public/assets.php b/public/assets.php index 824f84c..a0baa6d 100644 --- a/public/assets.php +++ b/public/assets.php @@ -15,7 +15,7 @@ require_once '../lib/bootstrap.php'; // Obtain request information -$uri = ltrim(Request::path_info(), '/'); +$uri = ltrim(Request::pathInfo(), '/'); list($type, $id) = explode('/', $uri, 2); // Setup response diff --git a/public/dispatch.php b/public/dispatch.php index 3bd9291..68d0399 100644 --- a/public/dispatch.php +++ b/public/dispatch.php @@ -22,4 +22,4 @@ require '../lib/bootstrap.php'; URLHelper::setBaseUrl($GLOBALS['ABSOLUTE_URI_STUDIP']); $dispatcher = app(\Trails_Dispatcher::class); -$dispatcher->dispatch(Request::path_info()); +$dispatcher->dispatch(Request::pathInfo()); diff --git a/public/install.php b/public/install.php index c10f928..52f4bf0 100644 --- a/public/install.php +++ b/public/install.php @@ -55,7 +55,7 @@ if (!function_exists('_')) { $GLOBALS['template_factory'] = new Flexi_TemplateFactory('../templates/'); # get plugin class from request -$dispatch_to = ltrim(Request::path_info(), '/'); +$dispatch_to = ltrim(Request::pathInfo(), '/'); $dispatcher = new Trails_Dispatcher( '../app', $_SERVER['SCRIPT_NAME'], 'admin/install'); $dispatcher->dispatch("admin/install/{$dispatch_to}"); diff --git a/public/plugins.php b/public/plugins.php index 368113d..99373a0 100644 --- a/public/plugins.php +++ b/public/plugins.php @@ -27,7 +27,7 @@ try { require_once 'lib/seminar_open.php'; // get plugin class from request - $dispatch_to = Request::path_info(); + $dispatch_to = Request::pathInfo(); list($plugin_class, $unconsumed) = PluginEngine::routeRequest($dispatch_to); // handle legacy forum plugin URLs diff --git a/public/web_migrate.php b/public/web_migrate.php index 02eeb95..79fba05 100644 --- a/public/web_migrate.php +++ b/public/web_migrate.php @@ -34,7 +34,7 @@ $_language_path = init_i18n($_SESSION['_language']); $GLOBALS['template_factory'] = new Flexi_TemplateFactory('../templates/'); # get plugin class from request -$dispatch_to = Request::path_info() ?: ''; +$dispatch_to = Request::pathInfo() ?: ''; $dispatcher = app(\Trails_Dispatcher::class); $dispatcher->trails_uri = $_SERVER['SCRIPT_NAME']; |
