mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
Merge branch 'MDL-51969-master' of https://github.com/dmitriim/moodle
This commit is contained in:
commit
b52e22dccb
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ abstract class resource_base {
|
||||||
|
|
||||||
if (empty($this->params)) {
|
if (empty($this->params)) {
|
||||||
$this->params = array();
|
$this->params = array();
|
||||||
if (isset($_SERVER['PATH_INFO'])) {
|
if (isset($_SERVER['PATH_INFO']) && !empty($_SERVER['PATH_INFO'])) {
|
||||||
$path = explode('/', $_SERVER['PATH_INFO']);
|
$path = explode('/', $_SERVER['PATH_INFO']);
|
||||||
$parts = explode('/', $this->get_template());
|
$parts = explode('/', $this->get_template());
|
||||||
for ($i = 0; $i < count($parts); $i++) {
|
for ($i = 0; $i < count($parts); $i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue