Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1026005
D352.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
Fri, Jun 13, 5:57 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sat, Jun 14, 5:57 PM (4 h, 19 m)
Engine
blob
Format
Raw Data
Handle
661658
Attached To
D352: INP-1752 - Update sub-class method signatures to match overridden methods in parent class
D352.diff
View Options
Index: branches/5.2.x/core/units/images/images.php
===================================================================
--- branches/5.2.x/core/units/images/images.php
+++ branches/5.2.x/core/units/images/images.php
@@ -23,7 +23,7 @@
* @return bool
* @access public
*/
- public function Delete($id)
+ public function Delete($id = null)
{
$this->Load($id);
$local_path = FULL_PATH . $this->GetDBField('LocalPath');
@@ -36,7 +36,7 @@
if ( file_exists($thumb_path) ) {
unlink($thumb_path);
}
-
+
return parent::Delete($id);
}
-}
\ No newline at end of file
+}
Index: branches/5.2.x/core/units/pdf/pdf_text.php
===================================================================
--- branches/5.2.x/core/units/pdf/pdf_text.php
+++ branches/5.2.x/core/units/pdf/pdf_text.php
@@ -230,7 +230,7 @@
}
}
- function DrawAt($page, $x, $y, $spacer_w=0)
+ function DrawAt($page, $x=0, $y=0, $spacer_w=0)
{
$page->SetLineWidth(0.1);
@@ -258,4 +258,4 @@
$this->CurX = $x;
}
-}
\ No newline at end of file
+}
Event Timeline
Log In to Comment