Code Duplication    Length = 3-3 lines in 3 locations

htdocs/lib2/common.inc.php 1 location

@@ 152-154 (lines=3) @@
149
    if (substr($opt['logic']['pictures']['thumb_url'], - 1, 1) != '/') {
150
        $opt['logic']['pictures']['thumb_url'] .= '/';
151
    }
152
    if (substr($opt['logic']['pictures']['thumb_dir'], - 1, 1) != '/') {
153
        $opt['logic']['pictures']['thumb_dir'] .= '/';
154
    }
155
156
    if (isset($opt['logic']['cachemaps']['wmsurl']) && strstr($opt['logic']['cachemaps']['wmsurl'], '://')) {
157
        $opt['logic']['cachemaps']['wmsurl'] =

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

@@ 282-284 (lines=3) @@
279
        // works intendently before bFilenameSet == true !
280
        global $opt;
281
282
        if (mb_substr($opt['logic']['pictures']['dir'], -1, 1) != '/') {
283
            $opt['logic']['pictures']['dir'] .= '/';
284
        }
285
286
        $url = $this->getUrl();
287
        $fna = mb_split('\\/', $url);
@@ 296-298 (lines=3) @@
293
    {
294
        global $opt;
295
296
        if (mb_substr($opt['logic']['pictures']['thumb_dir'], -1, 1) != '/') {
297
            $opt['logic']['pictures']['thumb_dir'] .= '/';
298
        }
299
300
        $url = $this->getUrl();
301
        $fna = mb_split('\\/', $url);