Code Duplication    Length = 3-3 lines in 3 locations

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);

htdocs/lib2/common.inc.php 1 location

@@ 181-183 (lines=3) @@
178
    if (substr($opt['logic']['pictures']['thumb_url'], - 1, 1) != '/') {
179
        $opt['logic']['pictures']['thumb_url'] .= '/';
180
    }
181
    if (substr($opt['logic']['pictures']['thumb_dir'], - 1, 1) != '/') {
182
        $opt['logic']['pictures']['thumb_dir'] .= '/';
183
    }
184
185
    if (isset($opt['logic']['cachemaps']['wmsurl']) && strstr($opt['logic']['cachemaps']['wmsurl'], '://')) {
186
        $opt['logic']['cachemaps']['wmsurl'] =