MDL-23560 questions import/export. PHP5 protected had been comitted to the 1.9 branch. Sorry.

This commit is contained in:
Tim Hunt
2010-07-28 14:18:37 +00:00
parent 51b2bf5ab1
commit e8a63fdaba
+2 -2
View File
@@ -783,7 +783,7 @@ class qformat_default {
* @param array $names
* @return string
*/
protected function assemble_category_path($names) {
function assemble_category_path($names) {
$escapednames = array();
foreach ($names as $name) {
$escapedname = str_replace('/', '//', $name);
@@ -809,7 +809,7 @@ class qformat_default {
* @param string $path
* @return array of category names.
*/
protected function split_category_path($path) {
function split_category_path($path) {
$rawnames = preg_split('~(?<!/)/(?!/)~', $path);
$names = array();
foreach ($rawnames as $rawname) {