Ignore:
Timestamp:
Jul 27, 2015 7:56:08 AM (9 years ago)
Author:
anonymous
Message:

Improved module maker validation output. Allow disabling cache at run time for ACL. Added ACL getList() method. Improved ACL CLI listing. Fixed app boomerang array initialization. Now retaining identical boomerang URLs if the key is different. Added a maximum boomerang time. Added a way to disable cache per request through a query string. Added validator isDecimal() method. Added disableSelectOptions() HTML method. Added getGravatarURL() method. Change how navigation page array is managed. Updated navigation currentPage() method to test an array of URLs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Utilities.inc.php

    r532 r534  
    275275 * @return string  A hexadecimal html color.
    276276 */
    277 function getTextColor($text, $method=1)
     277function getTextColor($text, $method=1, $n=0.87)
    278278{
    279279    $hash = md5($text);
     
    291291    default :
    292292        // Reduce all hex values slightly to avoid all white.
    293         array_walk($rgb, create_function('&$v', '$v = dechex(round(hexdec($v) * 0.87));'));
     293        array_walk($rgb, create_function('&$v', "\$v = dechex(round(hexdec(\$v) * $n));"));
    294294        break;
    295295    case 2 :
Note: See TracChangeset for help on using the changeset viewer.