Modified:
trunk/themes/settings_category_list.php
Log:
Use Database::getInstance
Modified: trunk/themes/settings_category_list.php
==============================================================================
--- trunk/themes/settings_category_list.php (original)
+++ trunk/themes/settings_category_list.php Sat Oct 6 10:31:08 2007
@@ -21,7 +21,8 @@
$session = Session::getInstance();
if ($this->CategoryData) {
$c = ObjectFactory::getInstance()->NewObject('Category');
- while ($Row =
$this->Context->Database->GetRow($this->CategoryData)) {
+ $db = Database::getInstance();
+ while ($Row = $db->GetRow($this->CategoryData)) {
$c->GetPropertiesFromDataSet($Row);
$c->FormatPropertiesForDisplay();
echo '<div class="SortListItem'.($c->RoleBlocked?'
RoleBlocked':'').($session->User->Permission('PERMISSION_SORT_CATEGORIES') ? '
MovableSortListItem':'').'" id="item_'.$c->CategoryID.'">
@@ -36,7 +37,7 @@
}
echo '</div>
<div id="SortResult" style="display: none;"></div>';
-
+
if ($session->User->Permission('PERMISSION_SORT_CATEGORIES')) {
echo "
<script type=\"text/javascript\" language=\"javascript\">