Code Duplication    Length = 3-3 lines in 3 locations

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

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

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'] =