Skip to content
This repository has been archived by the owner on Jun 30, 2019. It is now read-only.

Commit

Permalink
Add compatibility with php7
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel committed Jan 14, 2017
1 parent 3912a11 commit 12c4427
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion system/modules/galerie/dca/tl_galerie.php
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,8 @@ public function generateAlias($varValue, DataContainer $dc)
// Generate alias if there is none
if ($varValue == '') {
$autoAlias = true;
$varValue = standardize(String::restoreBasicEntities($dc->activeRecord->title));
$strClass = version_compare(VERSION . '.' . BUILD, '3.5.1', '<') ? '\String' : '\StringUtil';
$varValue = standardize($strClass::restoreBasicEntities($dc->activeRecord->title));
}

$objAlias = $this->Database->prepare("SELECT id FROM tl_galerie WHERE alias=?")->execute($varValue);
Expand Down
2 changes: 1 addition & 1 deletion system/modules/galerie/license.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Galleria and the plugins History, Picasa and Flickr are free to use and licensed
Contao extension by Lionel Maccaud (https://github.com/lionel-m)
License : MIT (http://lionel-m.mit-license.org/)

German translation : Carolina Koehn, http://kikmedia.de
German translation : Carolina Koehn, http://kikmedia.de

0 comments on commit 12c4427

Please sign in to comment.