Code Duplication    Length = 10-10 lines in 2 locations

class/Utility.php 1 location

@@ 879-888 (lines=10) @@
876
     *
877
     * @return boolean need to say it ?
878
     */
879
public static function isX23()
880
{
881
    $x23 = false;
882
    $xv  = str_replace('XOOPS ', '', XOOPS_VERSION);
883
    if (mb_substr($xv, 2, 1) >= '3') {
884
        $x23 = true;
885
    }
886
887
    return $x23;
888
}
889
890
    /**
891
     * Retreive an editor according to the module's option "form_options"

include/functions.php 1 location

@@ 597-606 (lines=10) @@
594
 *
595
 * @return boolean need to say it ?
596
 */
597
function lx_isX23()
598
{
599
    $x23 = false;
600
    $xv = str_replace('XOOPS ','',XOOPS_VERSION);
601
    if(substr($xv,2,1) >= '3') {
602
        $x23 = true;
603
    }
604
605
    return $x23;
606
}
607
608
/**
609
 * Retreive an editor according to the module's option "form_options"