[switchyard] r790 committed - Fixed common.lib.php.

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 2, 2009, 1:09:21 AM10/2/09
to switchy...@googlegroups.com
Revision: 790
Author: intuiworx
Date: Thu Oct 1 22:09:05 2009
Log: Fixed common.lib.php.
http://code.google.com/p/switchyard/source/detail?r=790

Modified:
/framework/trunk/bin/common.lib.php
/framework/trunk/index.php

=======================================
--- /framework/trunk/bin/common.lib.php Wed Jul 8 12:36:42 2009
+++ /framework/trunk/bin/common.lib.php Thu Oct 1 22:09:05 2009
@@ -4,8 +4,8 @@
chdir($appdir);

// Define some necessary constants.
-define('SY_ROOTDIR', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/..'));
-define('SY_HTTPDIR', strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/'));
+define('SY_ROOTDIR', $appdir);
+//define('SY_HTTPDIR', strtr(dirname($_SERVER['SCRIPT_NAME']), '\\', '/'));
define('SY_APPDIR', SY_ROOTDIR.'/app');
define('SY_CNFDIR', SY_APPDIR.'/conf');
define('SY_COREDIR', SY_APPDIR.'/core');
@@ -25,7 +25,6 @@
// set up doctrine
require_once 'app/external/doctrine/lib/Doctrine.php';
spl_autoload_register(array('Doctrine', 'autoload'));
-spl_autoload_register('autoload_helper');
$manager = Doctrine_Manager::getInstance();
$manager->setAttribute(Doctrine::ATTR_USE_NATIVE_ENUM, true);
$conn = Doctrine_Manager::connection(DB_DSN);
=======================================
--- /framework/trunk/index.php Thu Oct 1 20:17:39 2009
+++ /framework/trunk/index.php Thu Oct 1 22:09:05 2009
@@ -3,7 +3,7 @@
/**
* SwitchYard Master Controller Script
* @author Jeremy Clifton <j.cl...@4-8-4.com>
- * @version 3.1.6
+ * @version 3.1.7
* @copyright 2005-2009 4-8-4 Software Works, LLC
* @license BSD
*/
@@ -11,7 +11,7 @@
error_reporting(E_ALL);
ini_set('display_errors', true);

-define('SY_VERSION', '3.1.6');
+define('SY_VERSION', '3.1.7');
require 'app/core/bootstrap.php';
SwitchYard::$router = new SwitchYard_Router();
SwitchYard::$router->dispatch();

Reply all
Reply to author
Forward
0 new messages