Code Duplication    Length = 4-4 lines in 2 locations

ecrire/inc/lang.php 1 location

@@ 325-328 (lines=4) @@
322
	$tout = array();
323
	if (!$all_langs) {
324
		if ($d = @opendir(repertoire_lang())) {
325
            while (($f = readdir($d)) !== false) {
326
                if (preg_match(',^spip_([a-z_]+)\.php[3]?$,', $f, $regs))
327
                    $tout[] = $regs[1];
328
            }
329
            closedir($d);
330
            sort($tout);
331
        }

ecrire/public/composer.php 1 location

@@ 396-399 (lines=4) @@
393
	. ")$/";
394
395
	if ($d = @opendir(_DIR_LOGOS)) {
396
		while($f = readdir($d)) {
397
			if (preg_match($type, $f, $r))
398
				$logos[] = $r[1];
399
		}
400
	}
401
	@closedir($d);
402
	return join(',',$logos);