Code Duplication    Length = 10-10 lines in 2 locations

class/Utility.php 1 location

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

include/functions.php 1 location

@@ 473-482 (lines=10) @@
470
 *
471
 * @return boolean need to say it ?
472
 */
473
function lx_isX23()
474
{
475
    $x23 = false;
476
    $xv = str_replace('XOOPS ','',XOOPS_VERSION);
477
    if(substr($xv,2,1) >= '3') {
478
        $x23 = true;
479
    }
480
481
    return $x23;
482
}
483
484
/**
485
 * Retreive an editor according to the module's option "form_options"