Exemple #1
0
 public static function &loadTEXT($path)
 {
     $args = array($path);
     $res = Once::exec('Load::loadTEXT', function ($path) {
         $res = array();
         $res['cache'] = !Nostore::check(function () use($path, &$text) {
             $text = Load::load($path);
         });
         if (is_null($text)) {
             $text = '';
         }
         if (!is_string($text)) {
             $res['value'] = Load::json_encode($text);
         } else {
             $res['value'] = $text;
         }
         return $res;
     }, $args);
     if (!$res['cache']) {
         Nostore::on();
     }
     return $res['value'];
     return $res['value'];
 }