From 64676a66e3311cbbbdf49bbaeb423a4ef396cb7e Mon Sep 17 00:00:00 2001 From: John Klehm Date: Mon, 7 Apr 2008 15:56:56 -0500 Subject: include/application.php: if nice urls are on then use them internally --- include/application.php | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/include/application.php b/include/application.php index 71c9ff9..10d8c39 100644 --- a/include/application.php +++ b/include/application.php @@ -11,6 +11,7 @@ require_once(BASE."include/util.php"); require_once(BASE."include/mail.php"); require_once(BASE."include/maintainer.php"); require_once(BASE."include/tableve.php"); +require_once(BASE."include/nice_urls.php"); define("PLATINUM_RATING", "Platinum"); define("GOLD_RATING", "Gold"); @@ -923,7 +924,15 @@ class Application { public function objectMakeUrl() { - $sUrl = APPDB_ROOT."objectManager.php?sClass=application&iId=$this->iAppId"; + if (APPDB_ENABLE_NICE_URLS) + { + $sUrl = APPDB_ROOT . 'app/' . nice_url_name($this->sName); + } + else + { + $sUrl = APPDB_ROOT . "objectManager.php?sClass=application&iId=$this->iAppId"; + } + return $sUrl; } -- 1.5.4.5