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