Skip to content
Snippets Groups Projects
Commit c235127c authored by Tim Steiner's avatar Tim Steiner
Browse files

Update to ZF 1.8.0

parent 112a987c
Branches
Tags
No related merge requests found
......@@ -11,6 +11,7 @@ if (!$this->layout()->template) {
$this->layout()->title = 'Office of Undergraduate Studies';
$this->layout()->tagline = 'Course Approval';
require_once 'UNL/Templates.php';
$template = UNL_Templates::factory($this->layout()->template, array('sharedcodepath' => 'sharedcode'));
$template->titlegraphic = '<h1>' . $this->layout()->title . '</h1>'
. '<h2>' . $this->layout()->tagline . '</h2>';
......
......@@ -6,8 +6,12 @@ define('APPLICATION_DIR', '../application');
define('MODULES_DIR', APPLICATION_DIR . '/modules');
set_include_path(get_include_path() . PATH_SEPARATOR . '../library');
require_once 'Zend/Loader.php';
Zend_Loader::registerAutoload('Unl_Loader');
require_once 'Zend/Loader/Autoloader.php';
require_once 'Unl/Loader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('App_');
$autoloader->registerNamespace('Unl_');
$autoloader->pushAutoloader(new Unl_Loader_Autoloader());
$config = new Zend_Config_Ini(APPLICATION_DIR . '/config.ini');
......
......@@ -181,6 +181,7 @@ class App_View_Helper_BulletinEntryDiff
$delim = ' ';
if (!self::$_diffRenderer) {
require_once 'Text/Diff/Renderer/inline.php';
self::$_diffRenderer = new Text_Diff_Renderer_inline();
}
......@@ -194,6 +195,7 @@ class App_View_Helper_BulletinEntryDiff
$proposedArray[] = $tok;
}
require_once 'Text/Diff.php';
$diff = new Text_Diff('auto', array($currentArray, $proposedArray));
$diffText = ($diff->isEmpty() ? $current : self::$_diffRenderer->render($diff));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment