Changeset 334 for trunk/docs/codebase_v1-to-v2_upgrade_checklist.txt
- Timestamp:
- May 13, 2008 4:14:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/codebase_v1-to-v2_upgrade_checklist.txt
r256 r334 23 23 24 24 25 3. $CFG-> variables are gone. Most of these should be converted into their $app and $auth equiv elents. If a $CFG variable is NOT something used by the codebase but is still needed by the website application, I suggest converting these values to a $cfg array. For example, this:25 3. $CFG-> variables are gone. Most of these should be converted into their $app and $auth equivalents. If a $CFG variable is NOT something used by the codebase but is still needed by the website application, I suggest converting these values to a $cfg array. For example, this: 26 26 27 27 $CFG->gallery_images_url = '/gallery_images'; … … 35 35 "{$cfg['gallery_images_url']}/my/path". 36 36 37 If the value used is now to be retr eived from a $object->getParam(...) method call, youll need to do this:37 If the value used is now to be retrieved from a $object->getParam(...) method call, you'll need to do this: 38 38 39 39 $object->getParam('gallery_images_url') . '/my/path' … … 48 48 <a href="<?php echo $app->ohref("/my/file.php"); ?>"> 49 49 50 (In other words, the URL should be a not-fully-qualified URL starting with a slash.)51 52 53 // 5. Expect formatting inco sistencies! When doing global search-replace expect whitespace to be erratic, variable names to change, and lines to be otherwise inconsistent. Here's a good example of a safe way to match a line:50 (In other words, the URL should be a not-fully-qualified URL starting with a slash.) 51 52 53 // 5. Expect formatting inconsistencies! When doing global search-replace expect whitespace to be erratic, variable names to change, and lines to be otherwise inconsistent. Here's a good example of a safe way to match a line: 54 54 55 55 Searching for "$CFG->ssl_domain = 'www.example.com';":
Note: See TracChangeset
for help on using the changeset viewer.