Code Duplication    Length = 3-3 lines in 3 locations

htdocs/lib2/common.inc.php 1 location

@@ 173-175 (lines=3) @@
170
    if (substr($opt['logic']['pictures']['thumb_url'], - 1, 1) != '/') {
171
        $opt['logic']['pictures']['thumb_url'] .= '/';
172
    }
173
    if (substr($opt['logic']['pictures']['thumb_dir'], - 1, 1) != '/') {
174
        $opt['logic']['pictures']['thumb_dir'] .= '/';
175
    }
176
177
    if (isset($opt['logic']['cachemaps']['wmsurl']) && strstr($opt['logic']['cachemaps']['wmsurl'], '://')) {
178
        $opt['logic']['cachemaps']['wmsurl'] =

htdocs/lib2/logic/picture.class.php 2 locations

@@ 338-340 (lines=3) @@
335
        // works intendently before bFilenameSet == true !
336
        global $opt;
337
338
        if (mb_substr($opt['logic']['pictures']['dir'], -1, 1) != '/') {
339
            $opt['logic']['pictures']['dir'] .= '/';
340
        }
341
342
        $url = $this->getUrl();
343
        $fna = mb_split('\\/', $url);
@@ 355-357 (lines=3) @@
352
    {
353
        global $opt;
354
355
        if (mb_substr($opt['logic']['pictures']['thumb_dir'], -1, 1) != '/') {
356
            $opt['logic']['pictures']['thumb_dir'] .= '/';
357
        }
358
359
        $url = $this->getUrl();
360
        $fna = mb_split('\\/', $url);