ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
autoloader.php
Go to the documentation of this file.
1<?php
2spl_autoload_register(
3 function ($class) {
4 if (strpos($class, 'Gettext\\Languages\\') !== 0) {
5 return;
6 }
7 $file = __DIR__.str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen('Gettext\\Languages'))).'.php';
8 if (is_file($file)) {
9 require_once $file;
10 }
11 }
12);
An exception for terminatinating execution or to throw for unit testing.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file