openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

commit 4d816f4f203885dc5cd8f77b975b9a1d06f31796
parent fc0f393b29eaa0d5ed0111b983fb2302ef9dce72
Author: Jan Dankert <develop@jandankert.de>
Date:   Thu, 30 May 2019 12:21:17 +0200

Fix namespacing: Compatible with PHP 5.4

Diffstat:
modules/cms-core/model/Project.class.php | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/cms-core/model/Project.class.php b/modules/cms-core/model/Project.class.php @@ -9,7 +9,6 @@ define('PROJECT_FLAG_PUBLISH_PAGE_EXTENSION',8); use database\Database; use Session; -use Text; /** @@ -1038,7 +1037,7 @@ SQL $f->load(); $names = $f->parentObjectNames(true,true); foreach( $names as $fid=>$name ) - $names[$fid] = Text::maxLength($name,15,'..',STR_PAD_BOTH); + $names[$fid] = \Text::maxLength($name,15,'..',STR_PAD_BOTH); $folders[ $id ] = implode( ' &raquo; ',$names ); $folders[ $id ] .= ' &raquo; '; }