Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F802798
D257.id.diff
No One
Temporary
Actions
View 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
Tue, Feb 25, 1:52 AM
Size
882 B
Mime Type
text/x-diff
Expires
Wed, Feb 26, 1:52 AM (18 h, 39 m)
Engine
blob
Format
Raw Data
Handle
575674
Attached To
D257: INP-1594 - Generate/check category filename after page protection code was executed
D257.id.diff
View Options
Index: branches/5.2.x/core/units/categories/categories_event_handler.php
===================================================================
--- branches/5.2.x/core/units/categories/categories_event_handler.php
+++ branches/5.2.x/core/units/categories/categories_event_handler.php
@@ -1813,9 +1813,6 @@
$object = $event->getObject();
/* @var $object CategoriesItem */
- $object->checkFilename();
- $object->generateFilename();
-
$now = adodb_mktime();
if ( !$this->Application->isDebugMode() && strpos($event->Special, 'rebuild') === false ) {
@@ -1830,6 +1827,9 @@
}
}
+ $object->checkFilename();
+ $object->generateFilename();
+
// Don't allow creating records on behalf of another user.
if ( !$this->Application->isAdminUser && !defined('CRON') ) {
$object->SetDBField('CreatedById', $object->GetOriginalField('CreatedById'));
Event Timeline
Log In to Comment