Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1949748
inportal_upgrade_v1.0.1.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Oct 29, 7:26 AM
Size
374 B
Mime Type
text/x-php
Expires
Sat, Oct 31, 7:26 AM (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
963532
Attached To
rMINC Modules.In-Commerce
inportal_upgrade_v1.0.1.php
View Options
<?php
$db
=&
inst_GetADODBConnection
();
$sql
=
'SELECT RootCat FROM '
.
GetTablePrefix
().
'Modules WHERE Name = '
.
$db
->
qstr
(
'In-Commerce'
);
$module_cat
=
$db
->
GetOne
(
$sql
);
$next_resource_id
=
GetNextResourceId
();
$sql
=
'UPDATE '
.
GetTablePrefix
().
'Category SET ResourceId = %s WHERE CategoryId = %s'
;
$db
->
Execute
(
sprintf
(
$sql
,
$next_resource_id
,
$module_cat
)
);
?>
Event Timeline
Log In to Comment